Class 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
    • Field Summary

      • Fields inherited from interface org.glassfish.jersey.server.spi.Container

        DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
    • 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
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseRestServletContainer

        public BaseRestServletContainer()
      • BaseRestServletContainer

        public BaseRestServletContainer​(org.glassfish.jersey.server.ResourceConfig resourceConfig)
    • 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 class org.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 class org.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