JettyStartups to improve new Filters
[aaf/authz.git] / auth / auth-hello / src / main / java / org / onap / aaf / auth / hello / AAF_Hello.java
index 97448bd..9617f19 100644 (file)
@@ -34,6 +34,7 @@ import org.onap.aaf.auth.rserv.HttpCode;
 import org.onap.aaf.auth.rserv.HttpMethods;
 import org.onap.aaf.auth.server.AbsService;
 import org.onap.aaf.auth.server.JettyServiceStarter;
+import org.onap.aaf.auth.server.Log4JLogIt;
 import org.onap.aaf.cadi.CadiException;
 import org.onap.aaf.cadi.LocatorException;
 import org.onap.aaf.cadi.PropAccess;
@@ -96,11 +97,12 @@ public class AAF_Hello extends AbsService<AuthzEnv,AuthzTrans> {
        }
        
        @Override
-       public Filter[] filters() throws CadiException, LocatorException {
+       public Filter[] _filters(Object ... additionalTafLurs) throws CadiException, LocatorException {
                try {
                        return new Filter[] {
                                        new AuthzTransFilter(env,aafCon(),
-                                               new AAFTrustChecker((Env)env))
+                                       new AAFTrustChecker((Env)env),
+                                       additionalTafLurs)
                                };
                } catch (NumberFormatException e) {
                        throw new CadiException("Invalid Property information", e);
@@ -116,10 +118,11 @@ public class AAF_Hello extends AbsService<AuthzEnv,AuthzTrans> {
        }
 
        public static void main(final String[] args) {
-               PropAccess propAccess = new PropAccess(args);
                try {
+                       Log4JLogIt logIt = new Log4JLogIt(args, "hello");
+                       PropAccess propAccess = new PropAccess(logIt,args);
+
                        AAF_Hello service = new AAF_Hello(new AuthzEnv(propAccess));
-//                     env.setLog4JNames("log4j.properties","authz","hello","audit","init","trace");
                        JettyServiceStarter<AuthzEnv,AuthzTrans> jss = new JettyServiceStarter<AuthzEnv,AuthzTrans>(service);
                        jss.start();
                } catch (Exception e) {