|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.PortletResponseImpl
public abstract class PortletResponseImpl
| Field Summary | |
|---|---|
protected Properties |
properties
|
protected PortalRequest |
req
|
protected PortalResponse |
resp
|
| Constructor Summary | |
|---|---|
protected |
PortletResponseImpl(PortalRequest req,
PortalResponse resp,
Properties properties)
|
| Method Summary | |
|---|---|
void |
addProperty(java.lang.String name,
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 url)
Returns the encoded URL of the resource, like servlets, JSPs, images and other static files, at the given path. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets a String property to be returned to the portal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PortalRequest req
protected final PortalResponse resp
protected final Properties properties
| Constructor Detail |
|---|
protected PortletResponseImpl(PortalRequest req,
PortalResponse resp,
Properties properties)
| Method Detail |
|---|
public java.lang.String encodeURL(java.lang.String url)
PortletResponseSome portal/portlet-container implementation may require those URLs to contain implementation specific data encoded in it. Because of that, portlets should use this method to create such URLs.
The 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.
encodeURL in interface PortletResponseurl - 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).
public void addProperty(java.lang.String name,
java.lang.String value)
PortletResponseThis method allows response properties to have multiple values.
Properties can be used by portlets to provide vendor specific information to the portal.
addProperty in interface PortletResponsename - the key of the property to be returned to the portalvalue - the value of the property to be returned to the portal
public void setProperty(java.lang.String name,
java.lang.String value)
PortletResponseProperties can be used by portlets to provide vendor specific information to the portal.
This method resets all properties previously added with the same key.
setProperty in interface PortletResponsename - the key of the property to be returned to the portalvalue - the value of the property to be returned to the portal
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||