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 
    The dispatch callable contract.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dispatch(javax.servlet.ServletContext target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServerContext.Callable callable)
    Delegate to the request context the dispatching to the target servlet context using the specified spi elements.
    Return the scheme value.
    Return the server name value.
    int
    Return the server port value.
  • Method Details

    • 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