|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.spi.AbstractInvocationContext
org.jboss.portal.portlet.test.PortletController.InvocationContextImpl
| Nested Class Summary |
| Nested classes inherited from class org.jboss.portal.portlet.spi.InvocationContext |
InvocationContext.Scope |
| Field Summary | |
protected Mode |
mode
|
protected StateString |
navigationalState
|
protected Portlet |
portlet
|
protected ServerRequest |
serverRequest
|
protected ServerResponse |
serverResponse
|
protected WindowState |
windowState
|
| Fields inherited from interface org.jboss.portal.portlet.spi.InvocationContext |
INVOCATION_SCOPE, PRINCIPAL_SCOPE, SESSION_SCOPE |
| Constructor Summary | |
PortletController.InvocationContextImpl(Portlet portlet,
ServerInvocation invocation,
StateString navigationalState,
WindowState windowState,
Mode mode)
|
|
| Method Summary | |
java.lang.String |
encodeURL(PortletURL portletURL,
java.lang.Boolean wantSecure,
java.lang.Boolean wantAuthenticated,
boolean relative)
|
java.lang.String |
encodeURL(java.lang.String url)
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. |
javax.servlet.http.HttpServletRequest |
getClientRequest()
Return the client request. |
javax.servlet.http.HttpServletResponse |
getClientResponse()
Return the client response. |
Mode |
getMode()
Returns the mode for this invocation. |
StateString |
getNavigationalState()
Returns the navigational state for this invocation. |
HTTPStreamInfo |
getStreamInfo()
Return information about the underlying http wire this invocation is performed. |
WindowState |
getWindowState()
Returns the window state for this invocation. |
| Methods inherited from class org.jboss.portal.portlet.impl.spi.AbstractInvocationContext |
getAttribute, 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.InvocationContext |
getAttribute, setAttribute |
| Field Detail |
protected Portlet portlet
protected ServerRequest serverRequest
protected ServerResponse serverResponse
protected StateString navigationalState
protected WindowState windowState
protected Mode mode
| Constructor Detail |
public PortletController.InvocationContextImpl(Portlet portlet, ServerInvocation invocation, StateString navigationalState, WindowState windowState, Mode mode)
| Method Detail |
public javax.servlet.http.HttpServletResponse getClientResponse()
AbstractInvocationContext
getClientResponse in class AbstractInvocationContextpublic javax.servlet.http.HttpServletRequest getClientRequest()
AbstractInvocationContext
getClientRequest in class AbstractInvocationContextpublic Mode getMode()
InvocationContext
getMode in interface InvocationContextpublic WindowState getWindowState()
InvocationContext
getWindowState in interface InvocationContextpublic StateString getNavigationalState()
InvocationContext
getNavigationalState in interface InvocationContextpublic HTTPStreamInfo getStreamInfo()
InvocationContext
getStreamInfo in interface InvocationContextpublic java.lang.String encodeURL(java.lang.String url)
InvocationContextEncodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. For example, if the browser supports cookies, or session tracking is turned off, URL encoding is unnecessary.
For robust session tracking, all URLs emitted by a servlet should be run through this method. Otherwise, URL rewriting cannot be used with browsers which do not support cookies.
encodeURL in interface InvocationContextencodeURL in class AbstractInvocationContextpublic java.lang.String encodeURL(PortletURL portletURL, java.lang.Boolean wantSecure, java.lang.Boolean wantAuthenticated, boolean relative)
encodeURL in interface InvocationContextportletURL - the portlet urlwantSecure - wantAuthenticated - relative -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||