|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.environment.portlet.PortletResponse
org.apache.cocoon.environment.portlet.ActionResponse
public final class ActionResponse
Implements the Response interface for
the JSR-168 (Portlet) environment.
| Constructor Summary | |
|---|---|
protected |
ActionResponse(javax.portlet.ActionResponse response,
javax.portlet.PortletPreferences preferences,
ActionRequest request,
String uri)
Creates a ActionResponse based on a real ActionResponse object |
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value. |
javax.portlet.ActionResponse |
getActionResponse()
Type cast portletResponse to ActionResponse |
void |
sendRedirect(String location)
Implements redirect. |
void |
setHeader(String name,
String value)
Sets a response header with the given name and value. |
void |
setPortletMode(javax.portlet.PortletMode mode)
|
void |
setRenderParameter(String key,
String value)
|
void |
setRenderParameter(String key,
String[] values)
|
void |
setRenderParameters(Map parameters)
|
void |
setWindowState(javax.portlet.WindowState state)
|
| Methods inherited from class org.apache.cocoon.environment.portlet.PortletResponse |
|---|
addCookie, addDateHeader, addIntHeader, addProperty, containsHeader, createCookie, encodeURL, getCharacterEncoding, getLocale, getPortletResponse, setDateHeader, setIntHeader, setLocale, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ActionResponse(javax.portlet.ActionResponse response,
javax.portlet.PortletPreferences preferences,
ActionRequest request,
String uri)
ActionResponse object
| Method Detail |
|---|
public void addHeader(String name,
String value)
Response
addHeader in interface ResponseaddHeader in class PortletResponsename - the name of the headervalue - the additional header valuePortletEnvironment.HEADER_PORTLET_MODE,
PortletEnvironment.HEADER_WINDOW_STATE
public void setHeader(String name,
String value)
ResponsecontainsHeader method can be
used to test for the presence of a header before setting its
value.
setHeader in interface ResponsesetHeader in class PortletResponsename - the name of the headervalue - the header valuePortletEnvironment.HEADER_PORTLET_MODE,
PortletEnvironment.HEADER_WINDOW_STATE
public void sendRedirect(String location)
throws IOException
setRenderParameter(String, String)
method, sendRedirect(String) method is not called.
location -
IOExceptionpublic javax.portlet.ActionResponse getActionResponse()
ActionResponse
public void setPortletMode(javax.portlet.PortletMode mode)
throws javax.portlet.PortletModeException
javax.portlet.PortletModeException
public void setRenderParameter(String key,
String value)
public void setRenderParameter(String key,
String[] values)
public void setRenderParameters(Map parameters)
public void setWindowState(javax.portlet.WindowState state)
throws javax.portlet.WindowStateException
javax.portlet.WindowStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||