Interface ServerContext


  • public interface ServerContext
    Defines the request context contract. It's usage is related to the Servlet Container operational environment.
    Version:
    $Revision: 6929 $
    Author:
    Julien Viet
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ServerContext.Callable
      The dispatch callable contract.
    • Method Detail

      • getScheme

        String getScheme()
        Return the scheme value.
        Returns:
        the scheme
      • getServerName

        String getServerName()
        Return the server name value.
        Returns:
        the server name
      • getServerPort

        int getServerPort()
        Return the server port value.
        Returns:
        the server port
      • dispatch

        void dispatch​(javax.servlet.ServletContext target,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      ServerContext.Callable callable)
               throws Exception
        Delegate to the request context the dispatching to the target servlet context using the specified spi elements.
        Parameters:
        target - the target servlet context
        callable - the callable
        Throws:
        Exception - any exception