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

AbstractPortletInvocationContext - JBOSS Portal 2.6 API 英文版文档


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

java.lang.Object
  extended byorg.jboss.portal.common.invocation.AbstractInvocationContext
      extended byorg.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
All Implemented Interfaces:
InvocationContext, PortletInvocationContext
Direct Known Subclasses:
ControllerPortletInvocationContext, PortletController.PortletInvocationContextImpl, TestPortletInvocationContext, WSRPPortletInvocationContext

public abstract class AbstractPortletInvocationContext
extends AbstractInvocationContext
implements PortletInvocationContext

An abstract implementation.

Version:
$Revision: 5064 $
Author:
Julien Viet

Nested Class Summary
 
Nested classes inherited from class org.jboss.portal.common.invocation.AbstractInvocationContext
 
Field Summary
 
Fields inherited from class org.jboss.portal.common.invocation.AbstractInvocationContext
 
Constructor Summary
AbstractPortletInvocationContext()
           
 
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.
abstract  javax.servlet.http.HttpServletRequest getClientRequest()
          Return the client request.
abstract  javax.servlet.http.HttpServletResponse getClientResponse()
          Return the client response.
 
Methods inherited from class org.jboss.portal.common.invocation.AbstractInvocationContext
addResolver, addResolver, getAttribute, getAttributeResolver, removeAttribute, setAttribute
 
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.PortletInvocationContext
encodeURL, getMode, getNavigationalState, getStreamInfo, getWindowState
 
Methods inherited from interface org.jboss.portal.common.invocation.InvocationContext
getAttribute, getAttributeResolver, removeAttribute, setAttribute
 

Constructor Detail

AbstractPortletInvocationContext

public AbstractPortletInvocationContext()
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 PortletInvocationContext
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