JettyStartups to improve new Filters
[aaf/authz.git] / auth / auth-fs / src / main / java / org / onap / aaf / auth / fs / AAF_FS.java
index 5079139..ec50733 100644 (file)
@@ -36,6 +36,7 @@ import org.onap.aaf.auth.rserv.CachingFileAccess;
 import org.onap.aaf.auth.rserv.HttpCode;
 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.Access.Level;
 import org.onap.aaf.cadi.CadiException;
 import org.onap.aaf.cadi.LocatorException;
@@ -87,7 +88,8 @@ public class AAF_FS extends AbsService<AuthzEnv, AuthzTrans>  {
        };
        
        @Override
-       public Filter[] filters() throws CadiException, LocatorException {
+       public Filter[] _filters(Object ... additionalTafLurs) throws CadiException, LocatorException {
+               // Note: No TAFs and Lurs on FileServer
                return new Filter[] {
                        new AuthzTransOnlyFilter(env)
                };
@@ -102,10 +104,11 @@ public class AAF_FS extends AbsService<AuthzEnv, AuthzTrans>  {
        }
        
        public static void main(final String[] args) {
-               PropAccess propAccess = new PropAccess(args);
                try {
+                       Log4JLogIt logIt = new Log4JLogIt(args, "fs");
+                       PropAccess propAccess = new PropAccess(logIt,args);
+
                        AAF_FS service = new AAF_FS(new AuthzEnv(propAccess));
-//                     env.setLog4JNames("log4j.properties","authz","fs","audit","init",null);
                        JettyServiceStarter<AuthzEnv,AuthzTrans> jss = new JettyServiceStarter<AuthzEnv,AuthzTrans>(service);
                        jss.insecure().start();
                } catch (Exception e) {