接口 javax.servlet.ServletRequest
的使用

使用 ServletRequest 的软件包
javax.servlet The javax.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container. 
javax.servlet.http The javax.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container. 
javax.servlet.jsp Classes and interfaces for the Core JSP 2.1 API. 
org.apache.jasper.runtime   
org.eclipse.jetty.ajp   
org.eclipse.jetty.continuation   
org.eclipse.jetty.nested   
org.eclipse.jetty.security   
org.eclipse.jetty.security.authentication   
org.eclipse.jetty.security.jaspi   
org.eclipse.jetty.server   
org.eclipse.jetty.servlet   
org.eclipse.jetty.servlets   
 

javax.servletServletRequest 的使用
 

实现 ServletRequestjavax.servlet 中的类
 class ServletRequestWrapper
          Provides a convenient implementation of the ServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.
 

返回 ServletRequestjavax.servlet 中的方法
 ServletRequest ServletRequestWrapper.getRequest()
          Return the wrapped request object.
 ServletRequest AsyncContext.getRequest()
          Gets the request that was used to initialize this AsyncContext by calling startAsync() or startAsync(ServletRequest, ServletResponse).
 ServletRequest ServletRequestEvent.getServletRequest()
          Returns the ServletRequest that is changing.
 ServletRequest AsyncEvent.getSuppliedRequest()
          Gets the ServletRequest from this AsyncEvent.
 

参数类型为 ServletRequestjavax.servlet 中的方法
 void AsyncContext.addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse)
          Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the startAsync() methods.
 void FilterChain.doFilter(ServletRequest request, ServletResponse response)
          Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.
 void Filter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain.
 void RequestDispatcher.forward(ServletRequest request, ServletResponse response)
          Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server.
 void RequestDispatcher.include(ServletRequest request, ServletResponse response)
          Includes the content of a resource (servlet, JSP page, HTML file) in the response.
 boolean ServletRequestWrapper.isWrapperFor(ServletRequest wrapped)
          Checks (recursively) if this ServletRequestWrapper wraps the given ServletRequest instance.
 void Servlet.service(ServletRequest req, ServletResponse res)
          Called by the servlet container to allow the servlet to respond to a request.
abstract  void GenericServlet.service(ServletRequest req, ServletResponse res)
          Called by the servlet container to allow the servlet to respond to a request.
 void ServletRequestWrapper.setRequest(ServletRequest request)
          Sets the request object being wrapped.
 AsyncContext ServletRequestWrapper.startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
          The default behavior of this method is to invoke startAsync(ServletRequest, ServletResponse) on the wrapped request object.
 AsyncContext ServletRequest.startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
          Puts this request into asynchronous mode, and initializes its AsyncContext with the given request and response objects.
 

参数类型为 ServletRequestjavax.servlet 中的构造方法
AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response)
          Constructs an AsyncEvent from the given AsyncContext, ServletRequest, and ServletResponse.
AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, Throwable throwable)
          Constructs an AsyncEvent from the given AsyncContext, ServletRequest, ServletResponse, and Throwable.
ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value)
          Construct a ServletRequestAttributeEvent giving the servlet context of this web application, the ServletRequest whose attributes are changing and the name and value of the attribute.
ServletRequestEvent(ServletContext sc, ServletRequest request)
          Construct a ServletRequestEvent for the given ServletContext and ServletRequest.
ServletRequestWrapper(ServletRequest request)
          Creates a ServletRequest adaptor wrapping the given request object.
 

javax.servlet.httpServletRequest 的使用
 

javax.servlet.httpServletRequest 的子接口
 interface HttpServletRequest
          Extends the ServletRequest interface to provide request information for HTTP servlets.
 

实现 ServletRequestjavax.servlet.http 中的类
 class HttpServletRequestWrapper
          Provides a convenient implementation of the HttpServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.
 

参数类型为 ServletRequestjavax.servlet.http 中的方法
 void HttpServlet.service(ServletRequest req, ServletResponse res)
          Dispatches client requests to the protected service method.
 

javax.servlet.jspServletRequest 的使用
 

返回 ServletRequestjavax.servlet.jsp 中的方法
abstract  ServletRequest PageContext.getRequest()
          The current value of the request object (a ServletRequest).
 

参数类型为 ServletRequestjavax.servlet.jsp 中的方法
abstract  PageContext JspFactory.getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int buffer, boolean autoflush)
           obtains an instance of an implementation dependent javax.servlet.jsp.PageContext abstract class for the calling Servlet and currently pending request and response.
abstract  void PageContext.initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
           The initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method.
 

org.apache.jasper.runtimeServletRequest 的使用
 

返回 ServletRequestorg.apache.jasper.runtime 中的方法
 ServletRequest PageContextImpl.getRequest()
           
 ServletRequest JspContextWrapper.getRequest()
           
 

参数类型为 ServletRequestorg.apache.jasper.runtime 中的方法
static String JspRuntimeLibrary.getContextRelativePath(ServletRequest request, String relativePath)
          Convert a possibly relative resource path into a context-relative resource path that starts with a '/'.
 PageContext JspFactoryImpl.getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoflush)
           
static Throwable JspRuntimeLibrary.getThrowable(ServletRequest request)
          Returns the value of the javax.servlet.error.exception request attribute value, if present, otherwise the value of the javax.servlet.jsp.jspException request attribute value.
static void JspRuntimeLibrary.include(ServletRequest request, ServletResponse response, String relativePath, JspWriter out, boolean flush)
          Perform a RequestDispatcher.include() operation, with optional flushing of the response beforehand.
 void PageContextImpl.initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
           
 void JspContextWrapper.initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
           
static void JspRuntimeLibrary.introspect(Object bean, ServletRequest request)
           
static void JspRuntimeLibrary.introspecthelper(Object bean, String prop, String value, ServletRequest request, String param, boolean ignoreMethodNF)
           
 

org.eclipse.jetty.ajpServletRequest 的使用
 

实现 ServletRequestorg.eclipse.jetty.ajp 中的类
 class Ajp13Request
           
 

org.eclipse.jetty.continuationServletRequest 的使用
 

参数类型为 ServletRequestorg.eclipse.jetty.continuation 中的方法
 void ContinuationFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
static Continuation ContinuationSupport.getContinuation(ServletRequest request)
          Get a Continuation.
static Continuation ContinuationSupport.getContinuation(ServletRequest request, ServletResponse response)
          已过时。 use ContinuationSupport.getContinuation(ServletRequest)
 

参数类型为 ServletRequestorg.eclipse.jetty.continuation 中的构造方法
Servlet3Continuation(ServletRequest request)
           
 

org.eclipse.jetty.nestedServletRequest 的使用
 

实现 ServletRequestorg.eclipse.jetty.nested 中的类
 class NestedRequest
           
 

参数类型为 ServletRequestorg.eclipse.jetty.nested 中的方法
 void NestedConnector.service(ServletRequest outerRequest, ServletResponse outerResponse)
          Service a request of the outer servlet container by passing it to the nested instance of Jetty.
 

org.eclipse.jetty.securityServletRequest 的使用
 

参数类型为 ServletRequestorg.eclipse.jetty.security 中的方法
 boolean Authenticator.secureResponse(ServletRequest request, ServletResponse response, boolean mandatory, Authentication.User validatedUser)
           
 Authentication Authenticator.validateRequest(ServletRequest request, ServletResponse response, boolean mandatory)
          Validate a response
 

org.eclipse.jetty.security.authenticationServletRequest 的使用
 

实现 ServletRequestorg.eclipse.jetty.security.authentication 中的类
protected static class FormAuthenticator.FormRequest
           
 

参数类型为 ServletRequestorg.eclipse.jetty.security.authentication 中的方法
 Authentication DeferredAuthentication.authenticate(ServletRequest request)
           
 Authentication DeferredAuthentication.authenticate(ServletRequest request, ServletResponse response)
           
 UserIdentity LoginAuthenticator.login(String username, Object password, ServletRequest request)
           
 UserIdentity FormAuthenticator.login(String username, Object password, ServletRequest request)
           
 Authentication DeferredAuthentication.login(String username, Object password, ServletRequest request)
           
 boolean SpnegoAuthenticator.secureResponse(ServletRequest request, ServletResponse response, boolean mandatory, Authentication.User validatedUser)
           
 boolean FormAuthenticator.secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
           
 boolean DigestAuthenticator.secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
           
 boolean ClientCertAuthenticator.secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
           
 boolean BasicAuthenticator.secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
           
 Authentication SpnegoAuthenticator.validateRequest(ServletRequest request, ServletResponse response, boolean mandatory)
           
 Authentication FormAuthenticator.validateRequest(ServletRequest req, ServletResponse res, boolean mandatory)
           
 Authentication DigestAuthenticator.validateRequest(ServletRequest req, ServletResponse res, boolean mandatory)
           
 Authentication ClientCertAuthenticator.validateRequest(ServletRequest req, ServletResponse res, boolean mandatory)
           
 Authentication BasicAuthenticator.validateRequest(ServletRequest req, ServletResponse res, boolean mandatory)
           
 

org.eclipse.jetty.security.jaspiServletRequest 的使用
 

参数类型为 ServletRequestorg.eclipse.jetty.security.jaspi 中的方法
 UserIdentity JaspiAuthenticator.login(String username, Object password, ServletRequest request)
           
 boolean JaspiAuthenticator.secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser)
           
 Authentication JaspiAuthenticator.validateRequest(ServletRequest request, ServletResponse response, boolean mandatory)
           
 

参数类型为 ServletRequestorg.eclipse.jetty.security.jaspi 中的构造方法
JaspiMessageInfo(ServletRequest request, ServletResponse response, boolean isAuthMandatory)
           
 

org.eclipse.jetty.serverServletRequest 的使用
 

实现 ServletRequestorg.eclipse.jetty.server 中的类
 class Request
          Jetty Request.
 class ServletRequestHttpWrapper
          Class to tunnel a ServletRequest via a HttpServletRequest
 

返回 ServletRequestorg.eclipse.jetty.server 中的方法
 ServletRequest AsyncContinuation.getRequest()
           
 

参数类型为 ServletRequestorg.eclipse.jetty.server 中的方法
 void AsyncContinuation.addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
           
 Authentication Authentication.Deferred.authenticate(ServletRequest request)
          Authenticate if possible without sending a challenge.
 Authentication Authentication.Deferred.authenticate(ServletRequest request, ServletResponse response)
          Authenticate and possibly send a challenge.
 void Dispatcher.error(ServletRequest request, ServletResponse response)
           
 void Dispatcher.forward(ServletRequest request, ServletResponse response)
           
protected  void Dispatcher.forward(ServletRequest request, ServletResponse response, DispatcherType dispatch)
           
 void Dispatcher.include(ServletRequest request, ServletResponse response)
           
 Authentication Authentication.Deferred.login(String username, Object password, ServletRequest request)
          Login with the LOGIN authenticator
protected  void AsyncContinuation.startAsync(ServletContext context, ServletRequest request, ServletResponse response)
           
 AsyncContext Request.startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
           
 

参数类型为 ServletRequestorg.eclipse.jetty.server 中的构造方法
AsyncContinuation.AsyncEventState(ServletContext context, ServletRequest request, ServletResponse response)
           
ServletRequestHttpWrapper(ServletRequest request)
           
 

org.eclipse.jetty.servletServletRequest 的使用
 

参数类型为 ServletRequestorg.eclipse.jetty.servlet 中的方法
 void ServletHolder.handle(Request baseRequest, ServletRequest request, ServletResponse response)
          Service a request with this servlet.
 void JspPropertyGroupServlet.service(ServletRequest req, ServletResponse res)
           
 

org.eclipse.jetty.servletsServletRequest 的使用
 

参数类型为 ServletRequestorg.eclipse.jetty.servlets 中的方法
 void WelcomeFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void UserAgentFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void QoSFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void PutFilter.doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
 void MultiPartFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void GzipFilter.doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
 void DoSFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
           
 void CrossOriginFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
protected  String DoSFilter.extractUserId(ServletRequest request)
          Returns the user id, used to track this connection.
protected  int QoSFilter.getPriority(ServletRequest request)
          Get the request Priority.
 org.eclipse.jetty.servlets.DoSFilter.RateTracker DoSFilter.getRateTracker(ServletRequest request)
          Return a request rate tracker associated with this connection; keeps track of this connection's request rate.
 String UserAgentFilter.getUserAgent(ServletRequest request)
           
 void ProxyServlet.service(ServletRequest req, ServletResponse res)
           
 



Copyright © 2013. All Rights Reserved.