|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
public abstract class AbstractPortletInvocationContext
An abstract implementation that relies on the a request and response provided by the client (i.e the portal).
| Field Summary | |
|---|---|
protected org.jboss.portal.common.util.MarkupInfo |
markupInfo
. |
| Constructor Summary | |
|---|---|
protected |
AbstractPortletInvocationContext(org.jboss.portal.common.util.MarkupInfo markupInfo)
|
| Method Summary | |
|---|---|
java.lang.String |
encodeResourceURL(java.lang.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.jboss.portal.common.util.MarkupInfo |
getMarkupInfo()
todo : move me to client content // see if it is still needed with CC/PP Return information about the underlying http wire this invocation is performed. |
void |
renderURL(java.io.Writer writer,
ContainerURL containerURL,
URLFormat format)
Delegates the URL rendition to the method PortletInvocationContext.renderURL(org.jboss.portal.portlet.ContainerURL,org.jboss.portal.portlet.URLFormat)
and then invoke the Writer.write(String) method with the returned result. |
| 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.PortletInvocationContext |
|---|
renderURL |
| Field Detail |
|---|
protected final org.jboss.portal.common.util.MarkupInfo markupInfo
| Constructor Detail |
|---|
protected AbstractPortletInvocationContext(org.jboss.portal.common.util.MarkupInfo markupInfo)
| Method Detail |
|---|
public abstract javax.servlet.http.HttpServletRequest getClientRequest()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the client response is not available
public abstract javax.servlet.http.HttpServletResponse getClientResponse()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the client response is not available
public java.lang.String encodeResourceURL(java.lang.String url)
throws java.lang.IllegalArgumentException
encodeResourceURL in interface PortletInvocationContexturl - the url to be encoded
java.lang.IllegalArgumentException - if the url is not valid or nullpublic org.jboss.portal.common.util.MarkupInfo getMarkupInfo()
PortletInvocationContext
getMarkupInfo in interface PortletInvocationContext
public void renderURL(java.io.Writer writer,
ContainerURL containerURL,
URLFormat format)
throws java.io.IOException
PortletInvocationContext.renderURL(org.jboss.portal.portlet.ContainerURL,org.jboss.portal.portlet.URLFormat)
and then invoke the Writer.write(String) method with the returned result.
renderURL in interface PortletInvocationContextwriter - the writercontainerURL - the portlet urlformat - the url format
java.io.IOException - any IOException thrown by the writerPortletInvocationContext.renderURL(org.jboss.portal.portlet.ContainerURL,
org.jboss.portal.portlet.URLFormat)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||