private boolean isResourceUrlSecure ( Page page ) { ValueMap props = getPagePropertiesNullSafe ( page ) ; IntegratorMode mode = getIntegratorMode ( props ) ; if ( mode . isDetectProtocol ( ) ) { IntegratorProtocol integratorProtocol = getIntegratorProtocol ( props ) ; if ( integratorProtocol == IntegratorProtocol . HTTPS ) { return true ; } else if ( integratorProtocol == IntegratorProtocol . AUTO ) { return RequestPath . hasSelector ( request , IntegratorHandler . SELECTOR_INTEGRATORTEMPLATE_SECURE ) ; } } return false ; }
Checks whether resource URLs should be rendered in secure mode or not .