public interface PortletInvocationContext
| Modifier and Type | Method and Description |
|---|---|
String |
encodeResourceURL(String url)
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL
unchanged.
|
org.gatein.common.net.media.MediaType |
getResponseContentType()
Returns the response content type
|
String |
renderURL(ContainerURL containerURL,
URLFormat format)
Renders a container URL.
|
void |
renderURL(Writer writer,
ContainerURL containerURL,
URLFormat format)
Renders a container URL.
|
org.gatein.common.net.media.MediaType getResponseContentType()
String encodeResourceURL(String url) throws IllegalArgumentException
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.
url - the url to be encodedIllegalArgumentException - if the url is not valid or nullString renderURL(ContainerURL containerURL, URLFormat format)
containerURL - the portlet urlformat - the url formatvoid renderURL(Writer writer, ContainerURL containerURL, URLFormat format) throws IOException
writer - the writercontainerURL - the portlet urlformat - the url formatIOException - any IOException thrown by the writerCopyright © 2003-2016 GateIn. All Rights Reserved.