|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.common.invocation.AbstractInvocationContext
org.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 MarkupInfo |
markupInfo
. |
protected Mode |
mode
. |
protected StateString |
navigationalState
. |
protected WindowState |
windowState
. |
Constructor Summary | |
---|---|
protected |
AbstractPortletInvocationContext(Mode mode,
WindowState windowState,
StateString navigationalState,
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. |
MarkupInfo |
getMarkupInfo()
Return information about the underlying http wire this invocation is performed. |
Mode |
getMode()
Returns the mode for this invocation. |
StateString |
getNavigationalState()
Returns the navigational state for this invocation. |
WindowState |
getWindowState()
Returns the window state for this invocation. |
Methods inherited from class org.jboss.portal.common.invocation.AbstractInvocationContext |
---|
addResolver, addResolver, getAttribute, getAttributeResolver, removeAttribute, 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.PortletInvocationContext |
---|
renderURL |
Methods inherited from interface org.jboss.portal.common.invocation.InvocationContext |
---|
getAttribute, getAttributeResolver, removeAttribute, setAttribute |
Field Detail |
---|
protected MarkupInfo markupInfo
protected Mode mode
protected WindowState windowState
protected StateString navigationalState
Constructor Detail |
---|
protected AbstractPortletInvocationContext(Mode mode, WindowState windowState, StateString navigationalState, MarkupInfo markupInfo)
Method Detail |
---|
public abstract javax.servlet.http.HttpServletRequest getClientRequest() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the client response is not availablepublic abstract javax.servlet.http.HttpServletResponse getClientResponse() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the client response is not availablepublic java.lang.String encodeResourceURL(java.lang.String url) throws java.lang.IllegalArgumentException
encodeResourceURL
in interface PortletInvocationContext
url
- the url to be encoded
java.lang.IllegalArgumentException
- if the url is not valid or nullpublic Mode getMode()
PortletInvocationContext
getMode
in interface PortletInvocationContext
public WindowState getWindowState()
PortletInvocationContext
getWindowState
in interface PortletInvocationContext
public StateString getNavigationalState()
PortletInvocationContext
getNavigationalState
in interface PortletInvocationContext
public MarkupInfo getMarkupInfo()
PortletInvocationContext
getMarkupInfo
in interface PortletInvocationContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |