Package org.apache.hadoop.hbase.rest
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 inherited from interface org.apache.hbase.thirdparty.org.glassfish.jersey.server.spi.Container
DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
-
Constructor Summary
ConstructorDescriptionRESTServletContainer
(org.apache.hbase.thirdparty.org.glassfish.jersey.server.ResourceConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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, setStatus
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
-
Field Details
-
serialVersionUID
- See Also:
-
-
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 classorg.apache.hbase.thirdparty.org.glassfish.jersey.servlet.ServletContainer
- Throws:
javax.servlet.ServletException
IOException
-