org.jboss.portal.wsrp.invocation
Class WSRPPortletInvocationContext

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.wsrp.invocation.WSRPPortletInvocationContext
All Implemented Interfaces:
InvocationContext, PortletInvocationContext
Direct Known Subclasses:
WSRPActionContext, WSRPRenderContext

public class WSRPPortletInvocationContext
extends AbstractPortletInvocationContext
implements PortletInvocationContext

Version:
$Revision: 5064 $
Author:
Julien Viet, Chris Laprun

Field Summary
protected  RequestContext requestContext
           
 
Fields inherited from class org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
markupInfo, mode, navigationalState, windowState
 
Constructor Summary
WSRPPortletInvocationContext(StateString navigationalState, SecurityContext securityContext, MarkupInfo markupInfo, PortalContext portalContext, UserContext userContext, InstanceContext instanceContext, WindowContext windowContext, Mode mode, WindowState windowState)
           
 
Method Summary
 void contextualize(PortletInvocation invocation)
           
 java.lang.String encodeResourceURL(java.lang.String url)
          Override the default behavior in order to avoid to encode when it is producer written URL.
 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)
          URL to be re-written are of the form: wsrp_rewrite?wsrp-urlType=value&name1=value1&name2=value2 .../wsrp_rewrite
 
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

requestContext

protected RequestContext requestContext
Constructor Detail

WSRPPortletInvocationContext

public WSRPPortletInvocationContext(StateString navigationalState,
                                    SecurityContext securityContext,
                                    MarkupInfo markupInfo,
                                    PortalContext portalContext,
                                    UserContext userContext,
                                    InstanceContext instanceContext,
                                    WindowContext windowContext,
                                    Mode mode,
                                    WindowState windowState)
Method Detail

getClientRequest

public HttpServletRequest getClientRequest()
Description copied from class: AbstractPortletInvocationContext
Return the client request.

Specified by:
getClientRequest in class AbstractPortletInvocationContext
Returns:
the client request

getClientResponse

public HttpServletResponse getClientResponse()
Description copied from class: AbstractPortletInvocationContext
Return the client response.

Specified by:
getClientResponse in class AbstractPortletInvocationContext
Returns:
the client response

encodeResourceURL

public java.lang.String encodeResourceURL(java.lang.String url)
Override the default behavior in order to avoid to encode when it is producer written URL.

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)

URL to be re-written are of the form: wsrp_rewrite?wsrp-urlType=value&name1=value1&name2=value2 .../wsrp_rewrite

Specified by:
renderURL in interface PortletInvocationContext
Parameters:
portletURL -
wantSecure -
wantAuthenticated -
relative -
Returns:
the encoded url

contextualize

public void contextualize(PortletInvocation invocation)