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:
Serializable
,Filter
,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: 24152 $ $Date: 2020-09-24 17:30:52 -0300 (Thu, 24 Sep 2020) $
- 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(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
static HttpServletRequest
getRequest()
Returns the request sent to the current REST operation.static HttpServletResponse
getRespone()
Returns the response from the current REST operation.protected void
service(HttpServletRequest request, 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
-
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
-
-
-
-
Method Detail
-
doFilter
public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException
- Overrides:
doFilter
in classorg.glassfish.jersey.servlet.ServletContainer
- Throws:
IOException
ServletException
-
service
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
service
in classorg.glassfish.jersey.servlet.ServletContainer
- Throws:
ServletException
IOException
-
getRequest
public static HttpServletRequest getRequest()
Returns the request sent to the current REST operation.- Returns:
- the request.
- Since:
- 8.0.0
-
getRespone
public static HttpServletResponse getRespone()
Returns the response from the current REST operation.- Returns:
- the response
- Since:
- 10.4.0
-
-