Uses of Interface
javax.servlet.ServletRequest
-
Packages that use ServletRequest Package Description javax.servlet javax.servlet.http -
-
Uses of ServletRequest in javax.servlet
Classes in javax.servlet that implement ServletRequest Modifier and Type Class Description classServletRequestWrapperProvides a convenient implementation of the ServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.Methods in javax.servlet that return ServletRequest Modifier and Type Method Description ServletRequestAsyncContext. getRequest()Gets the request that was used to initialize this AsyncContext by callingstartAsync()orstartAsync(ServletRequest, ServletResponse).ServletRequestServletRequestWrapper. getRequest()Return the wrapped request object.ServletRequestServletRequestEvent. getServletRequest()Returns the ServletRequest that is changing.ServletRequestAsyncEvent. getSuppliedRequest()Gets the ServletRequest from this AsyncEvent.Methods in javax.servlet with parameters of type ServletRequest Modifier and Type Method Description voidAsyncContext. addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse)Registers the givenAsyncListenerwith the most recent asynchronous cycle that was started by a call to one of thestartAsync()methods.voidFilter. doFilter(ServletRequest request, ServletResponse response, FilterChain chain)ThedoFiltermethod 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.voidFilterChain. 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.voidRequestDispatcher. forward(ServletRequest request, ServletResponse response)Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server.voidRequestDispatcher. include(ServletRequest request, ServletResponse response)Includes the content of a resource (servlet, JSP page, HTML file) in the response.booleanServletRequestWrapper. isWrapperFor(ServletRequest wrapped)Checks (recursively) if this ServletRequestWrapper wraps the givenServletRequestinstance.abstract voidGenericServlet. service(ServletRequest req, ServletResponse res)Called by the servlet container to allow the servlet to respond to a request.voidServlet. service(ServletRequest req, ServletResponse res)Called by the servlet container to allow the servlet to respond to a request.voidServletRequestWrapper. setRequest(ServletRequest request)Sets the request object being wrapped.default AsyncContextServletRequest. startAsync(ServletRequest servletRequest, ServletResponse servletResponse)Puts this request into asynchronous mode, and initializes itsAsyncContextwith the given request and response objects.AsyncContextServletRequestWrapper. startAsync(ServletRequest servletRequest, ServletResponse servletResponse)The default behavior of this method is to invokestartAsync(ServletRequest, ServletResponse)on the wrapped request object.Constructors in javax.servlet with parameters of type ServletRequest Constructor Description 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. -
Uses of ServletRequest in javax.servlet.http
Subinterfaces of ServletRequest in javax.servlet.http Modifier and Type Interface Description interfaceHttpServletRequestExtends theServletRequestinterface to provide request information for HTTP servlets.Classes in javax.servlet.http that implement ServletRequest Modifier and Type Class Description classHttpServletRequestWrapperProvides a convenient implementation of the HttpServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.Methods in javax.servlet.http with parameters of type ServletRequest Modifier and Type Method Description voidHttpFilter. doFilter(ServletRequest req, ServletResponse res, FilterChain chain)ThedoFiltermethod 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.voidHttpServlet. service(ServletRequest req, ServletResponse res)Dispatches client requests to the protectedservicemethod.
-