|
|
|
@ -55,6 +55,7 @@ public class APIPublisherUtil {
|
|
|
|
|
|
|
|
|
|
private static final String NON_SECURED_RESOURCES = "nonSecuredEndPoints";
|
|
|
|
|
private static final String AUTH_TYPE_NON_SECURED = "None";
|
|
|
|
|
private static final String PARAM_IS_DEFAULT = "isDefault";
|
|
|
|
|
|
|
|
|
|
public static String getServerBaseUrl() {
|
|
|
|
|
WebappPublisherConfig webappPublisherConfig = WebappPublisherConfig.getInstance();
|
|
|
|
@ -143,6 +144,13 @@ public class APIPublisherUtil {
|
|
|
|
|
|
|
|
|
|
apiConfig.setSecured(false);
|
|
|
|
|
|
|
|
|
|
boolean isDefault = true;
|
|
|
|
|
String isDefaultParam = servletContext.getInitParameter(PARAM_IS_DEFAULT);
|
|
|
|
|
if (isDefaultParam != null && !isDefaultParam.isEmpty()) {
|
|
|
|
|
isDefault = Boolean.parseBoolean(isDefaultParam);
|
|
|
|
|
}
|
|
|
|
|
apiConfig.setDefault(isDefault);
|
|
|
|
|
|
|
|
|
|
String transports = servletContext.getInitParameter(PARAM_MANAGED_API_TRANSPORTS);
|
|
|
|
|
if (transports == null || transports.isEmpty()) {
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|