Class WebServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.servlet.DefaultServlet
org.apache.hadoop.http.WebServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.eclipse.jetty.server.ResourceService.WelcomeFactory, org.eclipse.jetty.util.resource.ResourceFactory

public class WebServlet extends org.eclipse.jetty.servlet.DefaultServlet
Hadoop DefaultServlet for serving static web content.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     

    Fields inherited from class org.eclipse.jetty.servlet.DefaultServlet

    CONTEXT_INIT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Get method is modified to support impersonation and Kerberos SPNEGO token by forcing client side redirect when accessing "/" (root) of the web application context.

    Methods inherited from class org.eclipse.jetty.servlet.DefaultServlet

    destroy, doHead, doOptions, doPost, doTrace, getInitParameter, getResource, getWelcomeFile, init, initContextHandler

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doPut, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    getInitParameterNames, getServletConfig, getServletContext, 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

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • WebServlet

      public WebServlet()
  • Method Details

    • doGet

      protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Get method is modified to support impersonation and Kerberos SPNEGO token by forcing client side redirect when accessing "/" (root) of the web application context.
      Overrides:
      doGet in class org.eclipse.jetty.servlet.DefaultServlet
      Throws:
      javax.servlet.ServletException
      IOException