org.jboss.portal.portlet.test
Class TestRenderContext
java.lang.Object
   org.jboss.portal.common.invocation.AbstractInvocationContext
org.jboss.portal.common.invocation.AbstractInvocationContext
       org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
           org.jboss.portal.portlet.impl.spi.AbstractRenderContext
org.jboss.portal.portlet.impl.spi.AbstractRenderContext
               org.jboss.portal.portlet.test.TestRenderContext
org.jboss.portal.portlet.test.TestRenderContext
- All Implemented Interfaces: 
- InvocationContext, PortletInvocationContext, RenderContext
- public class TestRenderContext 
- extends AbstractRenderContext
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
 
 
 
| Method Summary | 
|  javax.servlet.http.HttpServletRequest | getClientRequest()Return the client request.
 | 
|  javax.servlet.http.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 | 
 
 
 
TestRenderContext
public TestRenderContext(PortletURLRenderer urlRenderer,
                         Mode mode,
                         WindowState windowState,
                         StateString navigationalState,
                         MarkupInfo markupInfo)
getClientRequest
public javax.servlet.http.HttpServletRequest getClientRequest()
                                                       throws java.lang.IllegalStateException
- Description copied from class: AbstractPortletInvocationContext
- Return the client request.
 
- 
- Specified by:
- getClientRequestin class- AbstractPortletInvocationContext
 
- 
- Returns:
- the client request
- Throws:
- java.lang.IllegalStateException- if the client response is not available
 
getClientResponse
public javax.servlet.http.HttpServletResponse getClientResponse()
                                                         throws java.lang.IllegalStateException
- Description copied from class: AbstractPortletInvocationContext
- Return the client response.
 
- 
- Specified by:
- getClientResponsein class- AbstractPortletInvocationContext
 
- 
- Returns:
- the client response
- Throws:
- java.lang.IllegalStateException- if the client response is not available
 
renderURL
public java.lang.String renderURL(PortletURL portletURL,
                                  java.lang.Boolean wantSecure,
                                  java.lang.Boolean wantAuthenticated,
                                  boolean relative)
- 
- Parameters:
- portletURL- the portlet url
- Returns:
- the url