Class Dispatcher

  • All Implemented Interfaces:
    jakarta.servlet.RequestDispatcher

    public class Dispatcher
    extends java.lang.Object
    implements jakarta.servlet.RequestDispatcher
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String __FORWARD_PREFIX
      Dispatch include attribute names
      static java.lang.String __INCLUDE_PREFIX
      Dispatch include attribute names
      • Fields inherited from interface jakarta.servlet.RequestDispatcher

        ERROR_EXCEPTION, ERROR_EXCEPTION_TYPE, ERROR_MESSAGE, ERROR_REQUEST_URI, ERROR_SERVLET_NAME, ERROR_STATUS_CODE, FORWARD_CONTEXT_PATH, FORWARD_MAPPING, FORWARD_PATH_INFO, FORWARD_QUERY_STRING, FORWARD_REQUEST_URI, FORWARD_SERVLET_PATH, INCLUDE_CONTEXT_PATH, INCLUDE_MAPPING, INCLUDE_PATH_INFO, INCLUDE_QUERY_STRING, INCLUDE_REQUEST_URI, INCLUDE_SERVLET_PATH
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)  
      void forward​(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)  
      protected void forward​(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.DispatcherType dispatch)  
      void include​(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • __INCLUDE_PREFIX

        public static final java.lang.String __INCLUDE_PREFIX
        Dispatch include attribute names
        See Also:
        Constant Field Values
      • __FORWARD_PREFIX

        public static final java.lang.String __FORWARD_PREFIX
        Dispatch include attribute names
        See Also:
        Constant Field Values
    • Constructor Detail

      • Dispatcher

        public Dispatcher​(ContextHandler contextHandler,
                          HttpURI uri,
                          java.lang.String pathInContext)
      • Dispatcher

        public Dispatcher​(ContextHandler contextHandler,
                          java.lang.String name)
                   throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
    • Method Detail

      • error

        public void error​(jakarta.servlet.ServletRequest request,
                          jakarta.servlet.ServletResponse response)
                   throws jakarta.servlet.ServletException,
                          java.io.IOException
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException
      • include

        public void include​(jakarta.servlet.ServletRequest request,
                            jakarta.servlet.ServletResponse response)
                     throws jakarta.servlet.ServletException,
                            java.io.IOException
        Specified by:
        include in interface jakarta.servlet.RequestDispatcher
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException
      • forward

        public void forward​(jakarta.servlet.ServletRequest request,
                            jakarta.servlet.ServletResponse response)
                     throws jakarta.servlet.ServletException,
                            java.io.IOException
        Specified by:
        forward in interface jakarta.servlet.RequestDispatcher
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException
      • forward

        protected void forward​(jakarta.servlet.ServletRequest request,
                               jakarta.servlet.ServletResponse response,
                               jakarta.servlet.DispatcherType dispatch)
                        throws jakarta.servlet.ServletException,
                               java.io.IOException
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object