From 732344f175150fed87e0140ad75152d325364c8b Mon Sep 17 00:00:00 2001 From: Instrumental Date: Sat, 23 Jun 2018 11:01:25 -0500 Subject: JettyStartups to improve new Filters Issue-ID: AAF-361 Change-Id: I74cac231ebac81466778c1c3ebca16c63ae6f78a Signed-off-by: Instrumental --- .../src/main/java/org/onap/aaf/auth/server/AbsService.java | 14 ++++++++++++-- .../java/org/onap/aaf/auth/server/test/JU_AbsService.java | 2 +- .../onap/aaf/auth/server/test/JU_AbsServiceStarter.java | 2 +- .../onap/aaf/auth/server/test/JU_JettyServiceStarter.java | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) (limited to 'auth/auth-core') diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java index d8c73117..af6c88dc 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java @@ -104,8 +104,18 @@ public abstract class AbsService exte } } - public abstract Filter[] filters() throws CadiException, LocatorException; - + protected abstract Filter[] _filters(Object ... additionalTafLurs) throws CadiException, LocatorException; + + /** + * Overload this method to add new TAF or LURs + * + * @return + * @throws CadiException + * @throws LocatorException + */ + public Filter[] filters() throws CadiException, LocatorException { + return _filters(); + } public abstract Registrant[] registrants(final int port) throws CadiException, LocatorException; diff --git a/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsService.java b/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsService.java index 453eeb85..cd73e862 100644 --- a/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsService.java +++ b/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsService.java @@ -73,7 +73,7 @@ public class JU_AbsService { } @Override - public Filter[] filters() throws CadiException, LocatorException { + public Filter[] _filters(Object ... additionalTafLurs) throws CadiException, LocatorException { // TODO Auto-generated method stub return null; } diff --git a/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsServiceStarter.java b/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsServiceStarter.java index 071a0f83..1a3f4417 100644 --- a/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsServiceStarter.java +++ b/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_AbsServiceStarter.java @@ -100,7 +100,7 @@ public class JU_AbsServiceStarter { } @Override - public Filter[] filters() throws CadiException, LocatorException { + public Filter[] _filters(Object ... additionalTafLurs) throws CadiException, LocatorException { // TODO Auto-generated method stub return null; } diff --git a/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_JettyServiceStarter.java b/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_JettyServiceStarter.java index 9a02b634..13bac174 100644 --- a/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_JettyServiceStarter.java +++ b/auth/auth-core/src/test/java/org/onap/aaf/auth/server/test/JU_JettyServiceStarter.java @@ -59,7 +59,7 @@ public class JU_JettyServiceStarter { } @Override - public Filter[] filters() throws CadiException, LocatorException { + public Filter[] _filters(Object ... additionalTafLurs) throws CadiException, LocatorException { // TODO Auto-generated method stub return null; } -- cgit 1.2.3-korg