org.openqa.jetty.jetty.servlet
Class Dispatcher

java.lang.Object
  extended by org.openqa.jetty.jetty.servlet.Dispatcher
All Implemented Interfaces:
javax.servlet.RequestDispatcher

public class Dispatcher
extends java.lang.Object
implements javax.servlet.RequestDispatcher

Servlet RequestDispatcher.

Version:
$Id: Dispatcher.java,v 1.92 2005/12/12 18:03:31 gregwilkins Exp $
Author:
Greg Wilkins (gregw)

Field Summary
static int __ALL
           
static int __DEFAULT
          Dispatch types
static int __ERROR
           
static int __FORWARD
           
static java.lang.String __FORWARD_CONTEXT_PATH
           
static java.lang.String __FORWARD_PATH_INFO
           
static java.lang.String __FORWARD_QUERY_STRING
           
static java.lang.String __FORWARD_REQUEST_URI
          Dispatch include attribute names
static java.lang.String __FORWARD_SERVLET_PATH
           
static int __INCLUDE
           
static java.lang.String __INCLUDE_CONTEXT_PATH
           
static java.lang.String __INCLUDE_PATH_INFO
           
static java.lang.String __INCLUDE_QUERY_STRING
           
static java.lang.String __INCLUDE_REQUEST_URI
          Dispatch include attribute names
static java.lang.String __INCLUDE_SERVLET_PATH
           
static StringMap __managedAttributes
           
static int __REQUEST
           
 
Method Summary
 void forward(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
           
 void include(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
           
 boolean isNamed()
           
 java.lang.String toString()
           
static int type(java.lang.String type)
          Dispatch type from name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__DEFAULT

public static final int __DEFAULT
Dispatch types

See Also:
Constant Field Values

__REQUEST

public static final int __REQUEST
See Also:
Constant Field Values

__FORWARD

public static final int __FORWARD
See Also:
Constant Field Values

__INCLUDE

public static final int __INCLUDE
See Also:
Constant Field Values

__ERROR

public static final int __ERROR
See Also:
Constant Field Values

__ALL

public static final int __ALL
See Also:
Constant Field Values

__INCLUDE_REQUEST_URI

public static final java.lang.String __INCLUDE_REQUEST_URI
Dispatch include attribute names

See Also:
Constant Field Values

__INCLUDE_CONTEXT_PATH

public static final java.lang.String __INCLUDE_CONTEXT_PATH
See Also:
Constant Field Values

__INCLUDE_SERVLET_PATH

public static final java.lang.String __INCLUDE_SERVLET_PATH
See Also:
Constant Field Values

__INCLUDE_PATH_INFO

public static final java.lang.String __INCLUDE_PATH_INFO
See Also:
Constant Field Values

__INCLUDE_QUERY_STRING

public static final java.lang.String __INCLUDE_QUERY_STRING
See Also:
Constant Field Values

__FORWARD_REQUEST_URI

public static final java.lang.String __FORWARD_REQUEST_URI
Dispatch include attribute names

See Also:
Constant Field Values

__FORWARD_CONTEXT_PATH

public static final java.lang.String __FORWARD_CONTEXT_PATH
See Also:
Constant Field Values

__FORWARD_SERVLET_PATH

public static final java.lang.String __FORWARD_SERVLET_PATH
See Also:
Constant Field Values

__FORWARD_PATH_INFO

public static final java.lang.String __FORWARD_PATH_INFO
See Also:
Constant Field Values

__FORWARD_QUERY_STRING

public static final java.lang.String __FORWARD_QUERY_STRING
See Also:
Constant Field Values

__managedAttributes

public static final StringMap __managedAttributes
Method Detail

isNamed

public boolean isNamed()

include

public void include(javax.servlet.ServletRequest servletRequest,
                    javax.servlet.ServletResponse servletResponse)
             throws javax.servlet.ServletException,
                    java.io.IOException
Specified by:
include in interface javax.servlet.RequestDispatcher
Throws:
javax.servlet.ServletException
java.io.IOException

forward

public void forward(javax.servlet.ServletRequest servletRequest,
                    javax.servlet.ServletResponse servletResponse)
             throws javax.servlet.ServletException,
                    java.io.IOException
Specified by:
forward in interface javax.servlet.RequestDispatcher
Throws:
javax.servlet.ServletException
java.io.IOException

toString

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

type

public static int type(java.lang.String type)
Dispatch type from name



Copyright © 2011. All Rights Reserved.