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

AbstractInvocationContext - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.portlet.impl.spi
Class AbstractInvocationContext

java.lang.Object
  extended byorg.jboss.portal.portlet.impl.spi.AbstractInvocationContext
All Implemented Interfaces:
InvocationContext
Direct Known Subclasses:
CoreInvocationContext, PortletController.InvocationContextImpl, WSRPInvocationContext

public abstract class AbstractInvocationContext
extends java.lang.Object
implements InvocationContext

An abstract implementation.


Nested Class Summary
 
Nested classes inherited from class org.jboss.portal.portlet.spi.InvocationContext
InvocationContext.Scope
 
Field Summary
 
Fields inherited from interface org.jboss.portal.portlet.spi.InvocationContext
INVOCATION_SCOPE, PRINCIPAL_SCOPE, SESSION_SCOPE
 
Constructor Summary
AbstractInvocationContext()
           
 
Method Summary
 java.lang.String encodeURL(java.lang.String url)
          Validate the url and then delegate the encoding of the url to the client response.
 java.lang.Object getAttribute(InvocationContext.Scope scope, java.lang.String name)
           
abstract  javax.servlet.http.HttpServletRequest getClientRequest()
          Return the client request.
abstract  javax.servlet.http.HttpServletResponse getClientResponse()
          Return the client response.
 void setAttribute(InvocationContext.Scope scope, java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.portlet.spi.InvocationContext
encodeURL, getMode, getNavigationalState, getStreamInfo, getWindowState
 

Constructor Detail

AbstractInvocationContext

public AbstractInvocationContext()
Method Detail

getClientRequest

public abstract javax.servlet.http.HttpServletRequest getClientRequest()
Return the client request.


getClientResponse

public abstract javax.servlet.http.HttpServletResponse getClientResponse()
Return the client response.


encodeURL

public java.lang.String encodeURL(java.lang.String url)
                           throws java.lang.IllegalArgumentException
Validate the url and then delegate the encoding of the url to the client response.

Specified by:
encodeURL in interface InvocationContext
Parameters:
url - the url to be encoded
Returns:
the encoded URL if encoding is needed, the unchanged URL otherwise
Throws:
java.lang.IllegalArgumentException - if the url is not valid or null

setAttribute

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

getAttribute

public java.lang.Object getAttribute(InvocationContext.Scope scope,
                                     java.lang.String name)
Specified by:
getAttribute in interface InvocationContext