http.server.services.HEALTHCHECK.userName=${{HEALTHCHECK_USER}}
http.server.services.HEALTHCHECK.password=${{HEALTHCHECK_PASSWORD}}
http.server.services.HEALTHCHECK.https=true
-http.server.services.HEALTHCHECK.aaf=false
-http.server.services.HEALTHCHECK.filterClasses=
+http.server.services.HEALTHCHECK.aaf=${{AAF}}
http.client.services=PAP,PDP
import org.onap.policy.drools.protocol.configuration.ControllerConfiguration;
import org.onap.policy.drools.protocol.configuration.PdpdConfiguration;
import org.onap.policy.drools.server.restful.RestManager;
+import org.onap.policy.drools.server.restful.aaf.AafTelemetryAuthFilter;
import org.onap.policy.drools.utils.logging.LoggerUtil;
import org.onap.policy.drools.utils.logging.MDCTransaction;
import org.slf4j.Logger;
* Policy Engine Manager Implementation.
*/
class PolicyEngineManager implements PolicyEngine {
- private static final String INVALID_TOPIC_MSG = "Invalid Topic";
+ /**
+ * String literals.
+ */
+ private static final String INVALID_TOPIC_MSG = "Invalid Topic";
private static final String INVALID_EVENT_MSG = "Invalid Event";
private static final String ENGINE_STOPPED_MSG = "Policy Engine is stopped";
-
private static final String ENGINE_LOCKED_MSG = "Policy Engine is locked";
/**
try {
this.httpServers = getServletFactory().build(properties);
+ for (HttpServletServer server : this.httpServers) {
+ if (server.isAaf()) {
+ server.addFilterClass(null, AafTelemetryAuthFilter.class.getCanonicalName());
+ }
+ }
} catch (final IllegalArgumentException e) {
logger.error("{}: add-http-servers failed", this, e);
}
http.server.services.SECURED-CONFIG.managed=false
http.server.services.SECURED-CONFIG.swagger=true
http.server.services.SECURED-CONFIG.https=true
+http.server.services.SECURED-CONFIG.aaf=${{AAF}}
aaf.namespace=${{AAF_NAMESPACE}}
aaf.root.permission=${{AAF_NAMESPACE}}.pdpd
<hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
<commons.io.version>2.5</commons.io.version>
<xml.apis.version>1.4.01</xml.apis.version>
- <policy.common.version>1.3.1</policy.common.version>
+ <policy.common.version>1.3.1-SNAPSHOT</policy.common.version>
</properties>
<modules>