|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateAwareResponse
The StateAwareResponse represents a response that can modify
state information or send events.
It extends the PortletResponse interface.
Method Summary | |
---|---|
PortletMode | getPortletMode()
Returns the currently set portlet mode on this reponse. |
java.util.Map<java.lang.String,java.lang.String[]> | getRenderParameterMap()
Returns a Map of the render parameters currently set on this response. |
WindowState | getWindowState()
Returns the currently set window state on this response. |
void | removePublicRenderParameter(java.lang.String name)
Removes the specified public render parameter. |
void | setEvent(javax.xml.namespace.QName name,
java.io.Serializable value)
Publishes an Event with the given payload. |
void | setEvent(java.lang.String name,
java.io.Serializable value)
Publishes an Event with the given payload in the default namespace. |
void | javax.portlet.PortletMode)">setPortletMode(PortletMode portletMode)
Sets the portlet mode of a portlet to the given portlet mode. |
void | setRenderParameter(java.lang.String key,
java.lang.String value)
Sets a String parameter for the render request. |
void | setRenderParameter(java.lang.String key,
java.lang.String[] values)
Sets a String array parameter for the render request. |
void | setRenderParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Sets a parameter map for the render request. |
void | javax.portlet.WindowState)">setWindowState(WindowState windowState)
Sets the window state of a portlet to the given window state. |
Methods inherited from interface javax.portlet.PortletResponse |
---|
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty |
Method Detail |
---|
void setWindowState(WindowState windowState) throws WindowStateException
Possible values are the standard window states and any custom window states supported by the portal and the portlet. Standard window states are:
void setPortletMode(PortletMode portletMode) throws PortletModeException
Possible values are the standard portlet modes and any custom portlet modes supported by the portal and the portlet. Portlets must declare in the deployment descriptor the portlet modes they support for each markup type. Standard portlet modes are:
Note: The portlet may still be called in a different window state in the next render call, depending on the portlet container / portal.
void setRenderParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
All previously set render parameters are cleared.
These parameters will be accessible in all sub-sequent render calls via the PortletRequest.getParameter call until a new request is targeted to the portlet.
The given parameters do not need to be encoded prior to calling this method.
The portlet should not modify the map any further after calling this method.
void setRenderParameter(java.lang.String key, java.lang.String value)
These parameters will be accessible in all sub-sequent render calls via the PortletRequest.getParameter call until a request is targeted to the portlet.
This method replaces all parameters with the given key.
The given parameter do not need to be encoded prior to calling this method.
void setRenderParameter(java.lang.String key, java.lang.String[] values)
These parameters will be accessible in all sub-sequent render calls via the PortletRequest.getParameter call until a request is targeted to the portlet.
This method replaces all parameters with the given key.
The given parameter do not need to be encoded prior to calling this method.
void setEvent(javax.xml.namespace.QName name, java.io.Serializable value)
The object type of the value must be compliant with the specified event type in the portlet deployment descriptor.
The value must have a valid JAXB binding and be serializable.
void setEvent(java.lang.String name, java.io.Serializable value)
The name is treated as local part of the event QName and the namespace is either taken from the default-event-namespace element in the portlet deployment descriptor, or if this element is not provided the XML default namespace XMLConstants.NULL_NS_URI is used.
The object type of the value must be compliant with the specified event type in the portlet deployment descriptor.
The value must have a valid JAXB binding and be serializable.
java.util.Map<java.lang.String,java.lang.String[]> getRenderParameterMap()
The values in the returned Map are from type String array (String[]).
If no parameters exist this method returns an empty Map.
PortletMode getPortletMode()
WindowState getWindowState()
void removePublicRenderParameter(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |