Package com.composum.sling.core.proxy
Class GenericProxyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.sling.core.proxy.GenericProxyServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class GenericProxyServlet extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
the generic proxy servlet delegates proxy requests to the collected generic proxy service implementations- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
EXTERNAL_SUFFIX
protected List<GenericProxyService>
instances
static String
SERVICE_KEY
-
Constructor Summary
Constructors Constructor Description GenericProxyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addProxyService(@NotNull GenericProxyService service)
protected void
doGet(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response)
protected void
removeProxyService(@NotNull GenericProxyService service)
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
-
-
-
-
Field Detail
-
SERVICE_KEY
public static final String SERVICE_KEY
- See Also:
- Constant Field Values
-
EXTERNAL_SUFFIX
public static final Pattern EXTERNAL_SUFFIX
-
instances
protected List<GenericProxyService> instances
-
-
Method Detail
-
addProxyService
protected void addProxyService(@NotNull @NotNull GenericProxyService service)
-
removeProxyService
protected void removeProxyService(@NotNull @NotNull GenericProxyService service)
-
doGet
protected void doGet(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull org.apache.sling.api.SlingHttpServletResponse response) throws IOException
- Overrides:
doGet
in classorg.apache.sling.api.servlets.SlingSafeMethodsServlet
- Throws:
IOException
-
-