org.jboss.portal.portlet.test
Class PortletController.PortletInvocationContextImpl

java.lang.Object
  extended by org.jboss.portal.common.invocation.AbstractInvocationContext
      extended by org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
          extended by 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


Field Summary
protected  ServerInvocation invocation
           
protected  Portlet portlet
           
 
Fields inherited from class org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
markupInfo, mode, navigationalState, windowState
 
Constructor Summary
PortletController.PortletInvocationContextImpl(Portlet portlet, ServerInvocation invocation, StateString navigationalState, WindowState windowState, Mode mode)
           
 
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 org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
getMarkupInfo, getMode, getNavigationalState, getWindowState
 
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
getMarkupInfo, getMode, getNavigationalState, getWindowState
 
Methods inherited from interface org.jboss.portal.common.invocation.InvocationContext
getAttribute, getAttributeResolver, removeAttribute, setAttribute
 

Field Detail

portlet

protected Portlet portlet

invocation

protected ServerInvocation invocation
Constructor Detail

PortletController.PortletInvocationContextImpl

public PortletController.PortletInvocationContextImpl(Portlet portlet,
                                                      ServerInvocation invocation,
                                                      StateString navigationalState,
                                                      WindowState windowState,
                                                      Mode mode)
Method Detail

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