public abstract class AbstractPortletInvocationContext extends Object implements PortletInvocationContext
| Modifier and Type | Field and Description |
|---|---|
protected org.gatein.common.net.media.MediaType |
responseContentType
.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPortletInvocationContext()
Create a context with the
MediaType.TEXT_HTML response content type. |
protected |
AbstractPortletInvocationContext(org.gatein.common.net.media.MediaType responseContentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeResourceURL(String url)
Validate the url and then delegate the encoding of the url to the client response.
|
abstract javax.servlet.http.HttpServletRequest |
getClientRequest()
Return the client request.
|
abstract javax.servlet.http.HttpServletResponse |
getClientResponse()
Return the client response.
|
org.gatein.common.net.media.MediaType |
getResponseContentType() |
void |
renderURL(Writer writer,
ContainerURL containerURL,
URLFormat format)
Delegates the URL rendition to the method
PortletInvocationContext.renderURL(org.gatein.pc.api.ContainerURL , org.gatein.pc.api.URLFormat)
and then invoke the Writer.write(String) method with the returned result. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderURLprotected final org.gatein.common.net.media.MediaType responseContentType
protected AbstractPortletInvocationContext()
MediaType.TEXT_HTML response content type.protected AbstractPortletInvocationContext(org.gatein.common.net.media.MediaType responseContentType)
public abstract javax.servlet.http.HttpServletRequest getClientRequest()
throws IllegalStateException
IllegalStateException - if the client response is not availablepublic abstract javax.servlet.http.HttpServletResponse getClientResponse()
throws IllegalStateException
IllegalStateException - if the client response is not availablepublic String encodeResourceURL(String url) throws IllegalArgumentException
encodeResourceURL in interface PortletInvocationContextIllegalArgumentExceptionpublic org.gatein.common.net.media.MediaType getResponseContentType()
getResponseContentType in interface PortletInvocationContextpublic void renderURL(Writer writer, ContainerURL containerURL, URLFormat format) throws IOException
PortletInvocationContext.renderURL(org.gatein.pc.api.ContainerURL , org.gatein.pc.api.URLFormat)
and then invoke the Writer.write(String) method with the returned result.renderURL in interface PortletInvocationContextIOExceptionPortletInvocationContext.renderURL(org.gatein.pc.api.ContainerURL ,
org.gatein.pc.api.URLFormat)Copyright © 2003-2018 GateIn. All Rights Reserved.