org.jboss.portal.portlet.test
Class PortletController.PortletInvocationContextImpl
java.lang.Object
org.jboss.portal.common.invocation.AbstractInvocationContext
org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
org.jboss.portal.portlet.test.PortletController.PortletInvocationContextImpl
- All Implemented Interfaces:
- InvocationContext, PortletInvocationContext
- Direct Known Subclasses:
- PortletController.ActionContextImpl, PortletController.RenderContextImpl
- Enclosing class:
- PortletController
protected class PortletController.PortletInvocationContextImpl
- extends AbstractPortletInvocationContext
- implements PortletInvocationContext
Method Summary |
java.lang.String |
encodeResourceURL(java.lang.String url)
Validate the url and then delegate the encoding of the url to the client response. |
HttpServletRequest |
getClientRequest()
Return the client request. |
HttpServletResponse |
getClientResponse()
Return the client response. |
java.lang.String |
renderURL(PortletURL portletURL,
java.lang.Boolean wantSecure,
java.lang.Boolean wantAuthenticated,
boolean relative)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
portlet
protected Portlet portlet
invocation
protected ServerInvocation invocation
PortletController.PortletInvocationContextImpl
public PortletController.PortletInvocationContextImpl(Portlet portlet,
ServerInvocation invocation,
StateString navigationalState,
WindowState windowState,
Mode mode)
getClientResponse
public HttpServletResponse getClientResponse()
- Description copied from class:
AbstractPortletInvocationContext
- Return the client response.
- Specified by:
getClientResponse
in class AbstractPortletInvocationContext
- Returns:
- the client response
getClientRequest
public HttpServletRequest getClientRequest()
- Description copied from class:
AbstractPortletInvocationContext
- Return the client request.
- Specified by:
getClientRequest
in class AbstractPortletInvocationContext
- Returns:
- the client request
encodeResourceURL
public java.lang.String encodeResourceURL(java.lang.String url)
- Description copied from class:
AbstractPortletInvocationContext
- Validate the url and then delegate the encoding of the url to the client response.
- Specified by:
encodeResourceURL
in interface PortletInvocationContext
- Overrides:
encodeResourceURL
in class AbstractPortletInvocationContext
- Parameters:
url
- the url to be encoded
- Returns:
- the encoded url
renderURL
public java.lang.String renderURL(PortletURL portletURL,
java.lang.Boolean wantSecure,
java.lang.Boolean wantAuthenticated,
boolean relative)
- Specified by:
renderURL
in interface PortletInvocationContext
- Parameters:
portletURL
- the portlet url
- Returns:
- the url