当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AbstractPortletInvocationContext - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.portlet.impl.spi
Class AbstractPortletInvocationContext
java.lang.Object
org.jboss.portal.common.invocation.AbstractInvocationContext
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPortletInvocationContext
public AbstractPortletInvocationContext()
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