站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

AbstractRequestContext - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.server.app.impl
Class AbstractRequestContext

java.lang.Object
  extended byorg.jboss.portal.server.app.impl.AbstractRequestContext
All Implemented Interfaces:
RequestContext

public class AbstractRequestContext
extends java.lang.Object
implements RequestContext


Field Summary
protected  java.util.Map attributes
           
protected  Properties properties
           
protected static java.lang.Object REMOVED_ATTRIBUTE
           
protected  javax.servlet.http.HttpServletRequest req
           
protected  javax.servlet.http.HttpServletResponse resp
           
 
Constructor Summary
AbstractRequestContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 
Method Summary
 void addPropertyValue(java.lang.String name, java.lang.String value)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Set getAttributeNames()
           
 javax.servlet.http.HttpServletRequest getClientRequest()
           
 javax.servlet.http.HttpServletResponse getClientResponse()
           
 java.lang.String getContextPath()
           
 java.util.Set getPropertyNames()
           
 java.lang.String getPropertyValue(java.lang.String name)
           
 java.util.Enumeration getPropertyValues(java.lang.String name)
           
 java.lang.String getScheme()
           
 java.lang.String getServerName()
           
 int getServerPort()
           
 void include(javax.servlet.RequestDispatcher rd)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVED_ATTRIBUTE

protected static final java.lang.Object REMOVED_ATTRIBUTE

req

protected javax.servlet.http.HttpServletRequest req

resp

protected javax.servlet.http.HttpServletResponse resp

attributes

protected java.util.Map attributes

properties

protected Properties properties
Constructor Detail

AbstractRequestContext

public AbstractRequestContext(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
Method Detail

getClientRequest

public javax.servlet.http.HttpServletRequest getClientRequest()

getClientResponse

public javax.servlet.http.HttpServletResponse getClientResponse()

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface RequestContext

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface RequestContext

getAttributeNames

public java.util.Set getAttributeNames()
Specified by:
getAttributeNames in interface RequestContext

addPropertyValue

public void addPropertyValue(java.lang.String name,
                             java.lang.String value)
Specified by:
addPropertyValue in interface RequestContext

setPropertyValue

public void setPropertyValue(java.lang.String name,
                             java.lang.String value)
Specified by:
setPropertyValue in interface RequestContext

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String name)
Specified by:
getPropertyValue in interface RequestContext

getPropertyValues

public java.util.Enumeration getPropertyValues(java.lang.String name)
Specified by:
getPropertyValues in interface RequestContext

getPropertyNames

public java.util.Set getPropertyNames()
Specified by:
getPropertyNames in interface RequestContext

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface RequestContext

getServerName

public java.lang.String getServerName()
Specified by:
getServerName in interface RequestContext

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface RequestContext

getContextPath

public java.lang.String getContextPath()
Specified by:
getContextPath in interface RequestContext

include

public void include(javax.servlet.RequestDispatcher rd)
             throws java.io.IOException,
                    javax.servlet.ServletException
Specified by:
include in interface RequestContext
Throws:
java.io.IOException
javax.servlet.ServletException