|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.portlet.support.spi.InvocationContextSupport
Nested Class Summary |
Nested classes inherited from class org.jboss.portal.portlet.spi.InvocationContext |
InvocationContext.Scope |
Field Summary |
Fields inherited from interface org.jboss.portal.portlet.spi.InvocationContext |
INVOCATION_SCOPE, PRINCIPAL_SCOPE, SESSION_SCOPE |
Constructor Summary | |
InvocationContextSupport()
|
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. |
java.lang.Object |
getAttribute(InvocationContext.Scope scope,
java.lang.String name)
|
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. |
void |
setAttribute(InvocationContext.Scope scope,
java.lang.String name,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InvocationContextSupport()
Method Detail |
public StateString getNavigationalState()
InvocationContext
getNavigationalState
in interface InvocationContext
public Mode getMode()
InvocationContext
getMode
in interface InvocationContext
public WindowState getWindowState()
InvocationContext
getWindowState
in interface InvocationContext
public HTTPStreamInfo getStreamInfo()
InvocationContext
getStreamInfo
in interface InvocationContext
public java.lang.String encodeURL(java.lang.String url) throws java.lang.IllegalArgumentException
InvocationContext
Encodes 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 InvocationContext
url
- the url to be encoded
java.lang.IllegalArgumentException
- if the url is not valid or nullpublic java.lang.String encodeURL(PortletURL portletURL, java.lang.Boolean wantSecure, java.lang.Boolean wantAuthenticated, boolean relative)
encodeURL
in interface InvocationContext
portletURL
- the portlet urlwantSecure
- wantAuthenticated
- relative
-
public void setAttribute(InvocationContext.Scope scope, java.lang.String name, java.lang.Object value)
setAttribute
in interface InvocationContext
public java.lang.Object getAttribute(InvocationContext.Scope scope, java.lang.String name)
getAttribute
in interface InvocationContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |