Class RESTServletContainer

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hbase.thirdparty.org.glassfish.jersey.servlet.ServletContainer
org.apache.hadoop.hbase.rest.RESTServletContainer
All Implemented Interfaces:
Serializable, javax.servlet.Filter, javax.servlet.Servlet, javax.servlet.ServletConfig, org.apache.hbase.thirdparty.org.glassfish.jersey.server.spi.Container

@Private public class RESTServletContainer extends org.apache.hbase.thirdparty.org.glassfish.jersey.servlet.ServletContainer
REST servlet container. It is used to get the remote request user without going through @HttpContext, so that we can minimize code changes.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     

    Fields inherited from interface org.apache.hbase.thirdparty.org.glassfish.jersey.server.spi.Container

    DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
  • Constructor Summary

    Constructors
    Constructor
    Description
    RESTServletContainer(org.apache.hbase.thirdparty.org.glassfish.jersey.server.ResourceConfig config)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    This container is used only if authentication and impersonation is enabled.

    Methods inherited from class org.apache.hbase.thirdparty.org.glassfish.jersey.servlet.ServletContainer

    destroy, doFilter, 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
  • Field Details

  • Constructor Details

    • RESTServletContainer

      public RESTServletContainer(org.apache.hbase.thirdparty.org.glassfish.jersey.server.ResourceConfig config)
  • Method Details

    • service

      public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      This container is used only if authentication and impersonation is enabled. The remote request user is used as a proxy user for impersonation in invoking any REST service.
      Overrides:
      service in class org.apache.hbase.thirdparty.org.glassfish.jersey.servlet.ServletContainer
      Throws:
      javax.servlet.ServletException
      IOException