|
|
@ -130,8 +130,16 @@ public class APIPublisherLifecycleListener implements LifecycleListener {
|
|
|
|
apiConfig.setOwner(owner);
|
|
|
|
apiConfig.setOwner(owner);
|
|
|
|
|
|
|
|
|
|
|
|
String isSecuredParam = servletContext.getInitParameter(PARAM_MANAGED_API_IS_SECURED);
|
|
|
|
String isSecuredParam = servletContext.getInitParameter(PARAM_MANAGED_API_IS_SECURED);
|
|
|
|
boolean isSecured =
|
|
|
|
boolean isSecured;
|
|
|
|
(isSecuredParam != null && !isSecuredParam.isEmpty()) && Boolean.parseBoolean(isSecuredParam);
|
|
|
|
if (isSecuredParam == null || isSecuredParam.isEmpty()) {
|
|
|
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
|
|
|
log.debug("'managed-api-isSecured' attribute is not configured. Therefore, using the default, " +
|
|
|
|
|
|
|
|
"which is 'true'");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
isSecured = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
isSecured = Boolean.parseBoolean(isSecuredParam);
|
|
|
|
|
|
|
|
}
|
|
|
|
apiConfig.setSecured(isSecured);
|
|
|
|
apiConfig.setSecured(isSecured);
|
|
|
|
|
|
|
|
|
|
|
|
String transports = servletContext.getInitParameter(PARAM_MANAGED_API_TRANSPORTS);
|
|
|
|
String transports = servletContext.getInitParameter(PARAM_MANAGED_API_TRANSPORTS);
|
|
|
|