Package lumis.portal.rest
Class BaseRestServletContainer
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.glassfish.jersey.servlet.ServletContainer
-
- lumis.portal.rest.BaseRestServletContainer
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Filter
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,org.glassfish.jersey.server.spi.Container
- Direct Known Subclasses:
RestRootFilter
,RestServletApplication
public class BaseRestServletContainer extends org.glassfish.jersey.servlet.ServletContainer
Base REST Servlet container implementation, containing common implementation of portal's REST containers. For internal use only.- Since:
- 8.0.0
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseRestServletContainer()
BaseRestServletContainer(org.glassfish.jersey.server.ResourceConfig resourceConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
static javax.servlet.http.HttpServletRequest
getRequest()
Returns the request sent to the current REST operation.static javax.servlet.http.HttpServletResponse
getRespone()
Returns the response from the current REST operation.protected void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class org.glassfish.jersey.servlet.ServletContainer
destroy, doFilter, getApplicationHandler, getConfiguration, getServletContext, getStaticContentPattern, getWebComponent, init, init, init, reload, reload, service, service
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified
-
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
- Overrides:
doFilter
in classorg.glassfish.jersey.servlet.ServletContainer
- Throws:
java.io.IOException
javax.servlet.ServletException
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
service
in classorg.glassfish.jersey.servlet.ServletContainer
- Throws:
javax.servlet.ServletException
java.io.IOException
-
getRequest
public static javax.servlet.http.HttpServletRequest getRequest()
Returns the request sent to the current REST operation.- Returns:
- the request.
- Since:
- 8.0.0
-
getRespone
public static javax.servlet.http.HttpServletResponse getRespone()
Returns the response from the current REST operation.- Returns:
- the response
- Since:
- 10.4.0
-
-