|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortletResponse interface represents the response sent to the client device.
It is up the portlet container to enhance, extends, or modify the response as required before it is actually sent to the client.
PortletRequest
Method Summary | |
void |
addCookie(javax.servlet.http.Cookie aCookie)
Adds the given cookie to the response. |
PortletURI |
createURI(PortletRequest.Type aRequestType)
Create a portlet URI for the given request type. |
java.lang.String |
getCharacterEncoding()
Returns the name of the charset used for the MIME body sent in this response. |
java.util.Locale |
getLocale()
Returns the locale assigned to this response. |
org.apache.jetspeed.portal.ServletRequest |
getServletResponse()
Returns the original servlet request as sent by the client device. |
java.io.PrintWriter |
getWriter()
Returns the writer object that can be used to contribute markup to the portlet response. |
Method Detail |
public java.lang.String getCharacterEncoding()
public java.util.Locale getLocale()
public java.io.PrintWriter getWriter() throws java.io.IOException
It is important to note that the markup generated by the portlet is just a fragment of the overall markup generated by the portal itself. Therefore, there are limits as to what a portlet is allowed to generate in terms of markup. Please see the Portlet Development Guide (tbd).
public void addCookie(javax.servlet.http.Cookie aCookie)
Alternatively, it is possible to have the behaviour as a user-defineable setting. Then the user can decide whether
aCookie
- the cookiepublic PortletURI createURI(PortletRequest.Type aRequestType)
aRequestType
- the request typepublic org.apache.jetspeed.portal.ServletRequest getServletResponse()
PortletRequest.getServletRequest()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |