Uses of Interface
jakarta.servlet.ServletRequest
-
Packages that use ServletRequest Package Description jakarta.servlet The jakarta.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.jakarta.servlet.http The jakarta.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.jakarta.servlet.jsp org.apache.jasper.runtime -
-
Uses of ServletRequest in jakarta.servlet
Classes in jakarta.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 jakarta.servlet that return ServletRequest Modifier and Type Method Description ServletRequestAsyncContext. getRequest()ServletRequestServletRequestWrapper. getRequest()Get the wrapped request.ServletRequestServletRequestEvent. getServletRequest()Get the associated ServletRequest.ServletRequestAsyncEvent. getSuppliedRequest()Obtain the request associated with the event.Methods in jakarta.servlet with parameters of type ServletRequest Modifier and Type Method Description voidAsyncContext. addListener(AsyncListener listener, ServletRequest request, ServletResponse response)Adds an event listener that will be called when different AsyncEvents firevoidFilter. 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)TODO SERVLET3 - Add commentsabstract 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.AsyncContextServletRequest. startAsync(ServletRequest servletRequest, ServletResponse servletResponse)AsyncContextServletRequestWrapper. startAsync(ServletRequest servletRequest, ServletResponse servletResponse)The default behavior of this method is to return startAsync(Runnable) on the wrapped request object.Constructors in jakarta.servlet with parameters of type ServletRequest Constructor Description AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response)Creates an instance using the provide parameters.AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, java.lang.Throwable throwable)Creates an instance using the provide parameters.ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, java.lang.String name, java.lang.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 jakarta.servlet.http
Subinterfaces of ServletRequest in jakarta.servlet.http Modifier and Type Interface Description interfaceHttpServletRequestExtends theServletRequestinterface to provide request information for HTTP servlets.Classes in jakarta.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 jakarta.servlet.http with parameters of type ServletRequest Modifier and Type Method Description voidHttpFilter. 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.voidHttpServlet. service(ServletRequest req, ServletResponse res)Dispatches client requests to the protectedservicemethod. -
Uses of ServletRequest in jakarta.servlet.jsp
Methods in jakarta.servlet.jsp that return ServletRequest Modifier and Type Method Description abstract ServletRequestPageContext. getRequest()The current value of the request object (a ServletRequest).Methods in jakarta.servlet.jsp with parameters of type ServletRequest Modifier and Type Method Description abstract PageContextJspFactory. getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int buffer, boolean autoflush)obtains an instance of an implementation dependent jakarta.servlet.jsp.PageContext abstract class for the calling Servlet and currently pending request and response.abstract voidPageContext. initialize(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.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. -
Uses of ServletRequest in org.apache.jasper.runtime
Methods in org.apache.jasper.runtime that return ServletRequest Modifier and Type Method Description ServletRequestJspContextWrapper. getRequest()ServletRequestPageContextImpl. getRequest()Methods in org.apache.jasper.runtime with parameters of type ServletRequest Modifier and Type Method Description static java.lang.StringJspRuntimeLibrary. getContextRelativePath(ServletRequest request, java.lang.String relativePath)Convert a possibly relative resource path into a context-relative resource path that starts with a '/'.PageContextJspFactoryImpl. getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int bufferSize, boolean autoflush)static java.lang.ThrowableJspRuntimeLibrary. getThrowable(ServletRequest request)Returns the value of the jakarta.servlet.error.exception request attribute value, if present, otherwise the value of the jakarta.servlet.jsp.jspException request attribute value.static voidJspRuntimeLibrary. include(ServletRequest request, ServletResponse response, java.lang.String relativePath, JspWriter out, boolean flush)Perform a RequestDispatcher.include() operation, with optional flushing of the response beforehand.voidJspContextWrapper. initialize(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)voidPageContextImpl. initialize(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)static voidJspRuntimeLibrary. introspect(java.lang.Object bean, ServletRequest request)static voidJspRuntimeLibrary. introspecthelper(java.lang.Object bean, java.lang.String prop, java.lang.String value, ServletRequest request, java.lang.String param, boolean ignoreMethodNF)
-