org.jboss.portal.portlet.spi
Interface RequestContext

All Known Implementing Classes:
AbstractRequestContext

public interface RequestContext

Defines the request context contract. It's usage is related to the Servlet Container operational environment.

Version:
$Revision: 6929 $
Author:
Julien Viet

Method Summary
 java.lang.Object dispatch(ServletContainer servletContainer, javax.servlet.ServletContext targetServletContext, RequestDispatchCallback callback, java.lang.Object handback)
          Delegate to the request context the dispatching to the target servlet context using the specified spi elements.
 java.lang.String getScheme()
          Return the scheme value.
 java.lang.String getServerName()
          Return the server name value.
 int getServerPort()
          Return the server port value.
 

Method Detail

getScheme

java.lang.String getScheme()
Return the scheme value.


getServerName

java.lang.String getServerName()
Return the server name value.


getServerPort

int getServerPort()
Return the server port value.


dispatch

java.lang.Object dispatch(ServletContainer servletContainer,
                          javax.servlet.ServletContext targetServletContext,
                          RequestDispatchCallback callback,
                          java.lang.Object handback)
                          throws java.lang.Exception
Delegate to the request context the dispatching to the target servlet context using the specified spi elements.

Parameters:
servletContainer - the servlet container spi
targetServletContext - the target servlet context
callback - the call back to be done after dispatch
handback - the hand back object to provide after dispatch to the call back
Returns:
the call back returned object
Throws:
java.lang.Exception - any exception