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