| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PortletResponse
The PortletResponse defines the base interface to assist a portlet in creating and sending a response to
 the client. The portlet container uses two specialized versions of this interface when invoking a portlet,
 ActionResponse and RenderResponse. The  portlet container creates these objects and passes
 them as arguments to the portlet's processAction and render methods.
ActionResponse, 
RenderResponse| Method Summary | |
|---|---|
 void | 
addProperty(java.lang.String key,
            java.lang.String value)
Adds a String property to an existing key to be returned to the portal.  | 
 java.lang.String | 
encodeURL(java.lang.String path)
Returns the encoded URL of the resource, like servlets, JSPs, images and other static files, at the given path.  | 
 void | 
setProperty(java.lang.String key,
            java.lang.String value)
Sets a String property to be returned to the portal.  | 
| Method Detail | 
|---|
void addProperty(java.lang.String key,
                 java.lang.String value)
                 throws java.lang.IllegalArgumentException
key - the key of the property to be returned to the portalvalue - the value of the property to be returned to the portal
java.lang.IllegalArgumentException - if key is null.
void setProperty(java.lang.String key,
                 java.lang.String value)
                 throws java.lang.IllegalArgumentException
key - the key of the property to be returned to the portalvalue - the value of the property to be returned to the portal
java.lang.IllegalArgumentException - if key is null.
java.lang.String encodeURL(java.lang.String path)
                           throws java.lang.IllegalArgumentException
encodeURL method may include the session ID and other portal/portlet-container specific
 information into the URL. If encoding is not needed, it returns the URL unchanged.
path - the URI path to the resource. This must be either an absolute URL (e.g.
             http://my.co/myportal/mywebap/myfolder/myresource.gif) or a full path URI (e.g.
             /myportal/mywebap/myfolder/myresource.gif).
java.lang.IllegalArgumentException - if path doesn't have a leading slash or is not an absolute URL
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||