类 javax.servlet.ServletException
的使用

使用 ServletException 的软件包
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   
org.apache.jasper.runtime   
org.apache.jasper.servlet   
org.eclipse.jetty.annotations   
org.eclipse.jetty.continuation   
org.eclipse.jetty.http.spi   
org.eclipse.jetty.nested   
org.eclipse.jetty.plus.annotation   
org.eclipse.jetty.plus.webapp   
org.eclipse.jetty.rewrite.handler   
org.eclipse.jetty.security   
org.eclipse.jetty.server   
org.eclipse.jetty.server.handler   
org.eclipse.jetty.server.session   
org.eclipse.jetty.servlet   
org.eclipse.jetty.servlets   
org.eclipse.jetty.util   
org.eclipse.jetty.webapp   
org.eclipse.jetty.websocket   
 

javax.servletServletException 的使用
 

javax.servletServletException 的子类
 class UnavailableException
          Defines an exception that a servlet or filter throws to indicate that it is permanently or temporarily unavailable.
 

抛出 ServletExceptionjavax.servlet 中的方法
<T extends Filter>
T
ServletContext.createFilter(Class<T> clazz)
          Instantiates the given Filter class.
<T extends EventListener>
T
ServletContext.createListener(Class<T> clazz)
          Instantiates the given EventListener class.
<T extends AsyncListener>
T
AsyncContext.createListener(Class<T> clazz)
          Instantiates the given AsyncListener class.
<T extends Servlet>
T
ServletContext.createServlet(Class<T> clazz)
          Instantiates the given Servlet class.
 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.
 Servlet ServletContext.getServlet(String name)
          已过时。 As of Java Servlet API 2.1, with no direct replacement.

This method was originally defined to retrieve a servlet from a ServletContext. In this version, this method always returns null and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API.

In lieu of this method, servlets can share information using the ServletContext class and can perform shared business logic by invoking methods on common non-servlet classes.

 void RequestDispatcher.include(ServletRequest request, ServletResponse response)
          Includes the content of a resource (servlet, JSP page, HTML file) in the response.
 void GenericServlet.init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
 void Filter.init(FilterConfig filterConfig)
          Called by the web container to indicate to a filter that it is being placed into service.
 void Servlet.init(ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
 void GenericServlet.init(ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
 void ServletContainerInitializer.onStartup(Set<Class<?>> c, ServletContext ctx)
          Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.
 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.
 

javax.servlet.httpServletException 的使用
 

抛出 ServletExceptionjavax.servlet.http 中的方法
 boolean HttpServletRequestWrapper.authenticate(HttpServletResponse response)
          The default behavior of this method is to call authenticate on the wrapped request object.
 boolean HttpServletRequest.authenticate(HttpServletResponse response)
          Use the container login mechanism configured for the ServletContext to authenticate the user making this request.
protected  void HttpServlet.doDelete(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a DELETE request.
protected  void HttpServlet.doGet(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a GET request.
protected  void HttpServlet.doHead(HttpServletRequest req, HttpServletResponse resp)
          Receives an HTTP HEAD request from the protected service method and handles the request.
protected  void HttpServlet.doOptions(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a OPTIONS request.
protected  void HttpServlet.doPost(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a POST request.
protected  void HttpServlet.doPut(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a PUT request.
protected  void HttpServlet.doTrace(HttpServletRequest req, HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a TRACE request.
 Part HttpServletRequestWrapper.getPart(String name)
          The default behavior of this method is to call getPart on the wrapped request object.
 Part HttpServletRequest.getPart(String name)
          Gets the Part with the given name.
 Collection<Part> HttpServletRequestWrapper.getParts()
          The default behavior of this method is to call getParts on the wrapped request object.
 Collection<Part> HttpServletRequest.getParts()
          Gets all the Part components of this request, provided that it is of type multipart/form-data.
 void HttpServletRequestWrapper.login(String username, String password)
          The default behavior of this method is to call login on the wrapped request object.
 void HttpServletRequest.login(String username, String password)
          Validate the provided username and password in the password validation realm used by the web container login mechanism configured for the ServletContext.
 void HttpServletRequestWrapper.logout()
          The default behavior of this method is to call login on the wrapped request object.
 void HttpServletRequest.logout()
          Establish null as the value returned when getUserPrincipal, getRemoteUser, and getAuthType is called on the request.
protected  void HttpServlet.service(HttpServletRequest req, HttpServletResponse resp)
          Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class.
 void HttpServlet.service(ServletRequest req, ServletResponse res)
          Dispatches client requests to the protected service method.
 

javax.servlet.jspServletException 的使用
 

抛出 ServletExceptionjavax.servlet.jsp 中的方法
 void HttpJspPage._jspService(HttpServletRequest request, HttpServletResponse response)
          The _jspService()method corresponds to the body of the JSP page.
abstract  void PageContext.forward(String relativeUrlPath)
           This method is used to re-direct, or "forward" the current ServletRequest and ServletResponse to another active component in the application.
abstract  void PageContext.handlePageException(Exception e)
           This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP.
abstract  void PageContext.handlePageException(Throwable t)
           This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP.
abstract  void PageContext.include(String relativeUrlPath)
           Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread.
abstract  void PageContext.include(String relativeUrlPath, boolean flush)
           Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread.
 

org.apache.jasperServletException 的使用
 

org.apache.jasperServletException 的子类
 class JasperException
          Base class for all exceptions generated by the JSP engine.
 

org.apache.jasper.runtimeServletException 的使用
 

抛出 ServletExceptionorg.apache.jasper.runtime 中的方法
abstract  void HttpJspBase._jspService(HttpServletRequest request, HttpServletResponse response)
           
 void PageContextImpl.forward(String relativeUrlPath)
           
 void JspContextWrapper.forward(String relativeUrlPath)
           
 void PageContextImpl.handlePageException(Exception ex)
           
 void JspContextWrapper.handlePageException(Exception ex)
           
 void PageContextImpl.handlePageException(Throwable t)
           
 void JspContextWrapper.handlePageException(Throwable t)
           
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.include(String relativeUrlPath)
           
 void JspContextWrapper.include(String relativeUrlPath)
           
 void PageContextImpl.include(String relativeUrlPath, boolean flush)
           
 void JspContextWrapper.include(String relativeUrlPath, boolean flush)
           
 void HttpJspBase.init(ServletConfig config)
           
 void TldScanner.onStartup(Set<Class<?>> c, ServletContext ctxt)
           
 void HttpJspBase.service(HttpServletRequest request, HttpServletResponse response)
          Entry point into service.
 

org.apache.jasper.servletServletException 的使用
 

抛出 ServletExceptionorg.apache.jasper.servlet 中的方法
<T extends EventListener>
T
JspCServletContext.createListener(Class<T> clazz)
           
<T extends Servlet>
T
JspCServletContext.createServlet(Class<T> c)
           
 Servlet JspServletWrapper.getServlet()
           
 Servlet JspCServletContext.getServlet(String name)
          已过时。 This method has been deprecated with no replacement
 void JspServlet.init(ServletConfig config)
           
 void JspServlet.service(HttpServletRequest request, HttpServletResponse response)
           
 void JspServletWrapper.service(HttpServletRequest request, HttpServletResponse response, boolean precompile)
           
 

org.eclipse.jetty.annotationsServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.annotations 中的方法
 void AnnotationDecorator.decorateFilterHolder(FilterHolder filter)
           
<T extends Filter>
T
AnnotationDecorator.decorateFilterInstance(T filter)
           
<T extends EventListener>
T
AnnotationDecorator.decorateListenerInstance(T listener)
           
 void AnnotationDecorator.decorateServletHolder(ServletHolder servlet)
           
<T extends Servlet>
T
AnnotationDecorator.decorateServletInstance(T servlet)
           
 

org.eclipse.jetty.continuationServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.continuation 中的方法
 void ContinuationFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void ContinuationFilter.init(FilterConfig filterConfig)
           
 

org.eclipse.jetty.http.spiServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.http.spi 中的方法
 void HttpSpiContextHandler.doScope(String target, Request baseRequest, HttpServletRequest req, HttpServletResponse resp)
           
 

org.eclipse.jetty.nestedServletException 的使用
 

抛出 ServletExceptionorg.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.plus.annotationServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.plus.annotation 中的方法
 RunAs RunAsCollection.getRunAs(Object o)
           
 void RunAsCollection.setRunAs(Object o)
           
 void RunAs.setRunAs(ServletHolder holder)
           
 

org.eclipse.jetty.plus.webappServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.plus.webapp 中的方法
protected  void PlusDecorator.decorate(Object o)
           
 void PlusDecorator.decorateFilterHolder(FilterHolder filter)
           
<T extends Filter>
T
PlusDecorator.decorateFilterInstance(T filter)
           
<T extends EventListener>
T
PlusDecorator.decorateListenerInstance(T listener)
           
 void PlusDecorator.decorateServletHolder(ServletHolder holder)
           
<T extends Servlet>
T
PlusDecorator.decorateServletInstance(T servlet)
           
 

org.eclipse.jetty.rewrite.handlerServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.rewrite.handler 中的方法
 void RewriteHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 

org.eclipse.jetty.securityServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.security 中的方法
 void SecurityHandler.handle(String pathInContext, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 

org.eclipse.jetty.serverServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.server 中的方法
 boolean ServletRequestHttpWrapper.authenticate(HttpServletResponse response)
           
 boolean Request.authenticate(HttpServletResponse response)
           
<T extends AsyncListener>
T
AsyncContinuation.createListener(Class<T> clazz)
           
 void Dispatcher.error(ServletRequest request, ServletResponse response)
           
 void Dispatcher.forward(ServletRequest request, ServletResponse response)
           
protected  void Dispatcher.forward(ServletRequest request, ServletResponse response, DispatcherType dispatch)
           
 Part ServletRequestHttpWrapper.getPart(String name)
           
 Part Request.getPart(String name)
           
 Collection<Part> ServletRequestHttpWrapper.getParts()
           
 Collection<Part> Request.getParts()
           
 void Server.handle(AbstractHttpConnection connection)
           
 void Handler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
          Handle a request.
 void Server.handleAsync(AbstractHttpConnection connection)
           
 void Dispatcher.include(ServletRequest request, ServletResponse response)
           
 void ServletRequestHttpWrapper.login(String username, String password)
           
 void Request.login(String username, String password)
           
 void ServletRequestHttpWrapper.logout()
           
 void Request.logout()
           
 

org.eclipse.jetty.server.handlerServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.server.handler 中的方法
 boolean ContextHandler.checkContext(String target, Request baseRequest, HttpServletResponse response)
           
<T extends Filter>
T
ContextHandler.Context.createFilter(Class<T> c)
           
<T extends EventListener>
T
ContextHandler.Context.createListener(Class<T> clazz)
           
<T extends Servlet>
T
ContextHandler.Context.createServlet(Class<T> c)
           
abstract  void ScopedHandler.doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ContextHandler.doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
abstract  void ScopedHandler.doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ContextHandler.doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 Servlet ContextHandler.Context.getServlet(String name)
          已过时。 
 void StatisticsHandler.handle(String path, Request request, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
           
 void ShutdownHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ScopedHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ResourceHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void RequestLogHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void IPAccessHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
          Checks the incoming request against the whitelist and blacklist
 void HotSwapHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void HandlerWrapper.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void HandlerList.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void HandlerCollection.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void GzipHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void DefaultHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void DebugHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ContextHandlerCollection.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ConnectHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
protected  boolean ConnectHandler.handleAuthentication(HttpServletRequest request, HttpServletResponse response, String address)
          Handles the authentication before setting up the tunnel to the remote server.
protected  void ConnectHandler.handleConnect(Request baseRequest, HttpServletRequest request, HttpServletResponse response, String serverAddress)
          Handles a CONNECT request.
 void ScopedHandler.nextHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void ScopedHandler.nextScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 

org.eclipse.jetty.server.sessionServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.server.session 中的方法
 void SessionHandler.doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void SessionHandler.doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 

org.eclipse.jetty.servletServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.servlet 中的方法
<T extends Filter>
T
ServletContextHandler.Context.createFilter(Class<T> c)
           
<T extends EventListener>
T
ServletContextHandler.Context.createListener(Class<T> clazz)
           
<T extends Servlet>
T
ServletContextHandler.Context.createServlet(Class<T> c)
           
 void ServletContextHandler.Decorator.decorateFilterHolder(FilterHolder filter)
           
<T extends Filter>
T
ServletContextHandler.Decorator.decorateFilterInstance(T filter)
           
<T extends EventListener>
T
ServletContextHandler.Decorator.decorateListenerInstance(T listener)
           
 void ServletContextHandler.Decorator.decorateServletHolder(ServletHolder servlet)
           
<T extends Servlet>
T
ServletContextHandler.Decorator.decorateServletInstance(T servlet)
           
protected  void StatisticsServlet.doGet(HttpServletRequest req, HttpServletResponse resp)
           
protected  void NoJspServlet.doGet(HttpServletRequest req, HttpServletResponse response)
           
protected  void DefaultServlet.doGet(HttpServletRequest request, HttpServletResponse response)
           
 void ServletHandler.doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
protected  void DefaultServlet.doOptions(HttpServletRequest req, HttpServletResponse resp)
           
 void StatisticsServlet.doPost(HttpServletRequest sreq, HttpServletResponse sres)
           
protected  void DefaultServlet.doPost(HttpServletRequest request, HttpServletResponse response)
           
 void ServletHandler.doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
protected  void DefaultServlet.doTrace(HttpServletRequest req, HttpServletResponse resp)
           
 Servlet ServletHolder.getServlet()
          Get the servlet.
 void ServletHolder.handle(Request baseRequest, ServletRequest request, ServletResponse response)
          Service a request with this servlet.
 void StatisticsServlet.init()
           
 void JspPropertyGroupServlet.init()
           
protected  Servlet ServletHolder.newInstance()
           
protected  void Invoker.service(HttpServletRequest request, HttpServletResponse response)
           
 void JspPropertyGroupServlet.service(ServletRequest req, ServletResponse res)
           
 

org.eclipse.jetty.servletsServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.servlets 中的方法
protected  void DoSFilter.doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
           
 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  void DoSFilter.doFilterChain(FilterChain chain, HttpServletRequest request, HttpServletResponse response)
           
protected  void ConcatServlet.doGet(HttpServletRequest req, HttpServletResponse resp)
           
 void PutFilter.handleDelete(HttpServletRequest request, HttpServletResponse response, String pathInContext, File file)
           
 void PutFilter.handleMove(HttpServletRequest request, HttpServletResponse response, String pathInContext, File file)
           
 void PutFilter.handleOptions(FilterChain chain, HttpServletRequest request, HttpServletResponse response)
           
 void PutFilter.handlePut(HttpServletRequest request, HttpServletResponse response, String pathInContext, File file)
           
 void ConcatServlet.init()
           
 void CGI.init()
           
 void UserAgentFilter.init(FilterConfig filterConfig)
           
 void PutFilter.init(FilterConfig config)
           
 void MultiPartFilter.init(FilterConfig filterConfig)
           
 void IncludableGzipFilter.init(FilterConfig filterConfig)
           
 void GzipFilter.init(FilterConfig filterConfig)
           
 void CrossOriginFilter.init(FilterConfig config)
           
 void ProxyServlet.init(ServletConfig config)
           
 void ProxyServlet.Transparent.init(ServletConfig config)
           
 void BalancerServlet.init(ServletConfig config)
           
 void CGI.service(HttpServletRequest req, HttpServletResponse res)
           
 void ProxyServlet.service(ServletRequest req, ServletResponse res)
           
 

org.eclipse.jetty.utilServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.util 中的方法
 Part MultiPartInputStream.getPart(String name)
          Get the named Part.
 Collection<Part> MultiPartInputStream.getParts()
          Parse, if necessary, the multipart data and return the list of Parts.
protected  void MultiPartInputStream.parse()
          Parse, if necessary, the multipart stream.
 

org.eclipse.jetty.webappServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.webapp 中的方法
protected  EventListener StandardDescriptorProcessor.newListenerInstance(WebAppContext context, Class<? extends EventListener> clazz)
           
 

org.eclipse.jetty.websocketServletException 的使用
 

抛出 ServletExceptionorg.eclipse.jetty.websocket 中的方法
 void WebSocketHandler.handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void WebSocketServlet.init()
           
protected  void WebSocketServlet.service(HttpServletRequest request, HttpServletResponse response)
           
 



Copyright © 2013. All Rights Reserved.