|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.portlet.filter.PortletResponseWrapper
public class PortletResponseWrapper
The PortletResponseWrapper
provides a convenient
implementation of the PortletResponse
interface
and is extended by other response wrappers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped response object.
PortletResponse
Constructor Summary | |
---|---|
PortletResponseWrapper(PortletResponse response)
Creates an ActionResponse adaptor
wrapping the given response object. |
Method Summary | |
---|---|
void |
addProperty(javax.servlet.http.Cookie cookie)
The default behavior of this method is to call addProperty() on the wrapped response object. |
void |
addProperty(java.lang.String key,
org.w3c.dom.Element element)
The default behavior of this method is to call addProperty() on the wrapped response object. |
void |
addProperty(java.lang.String key,
java.lang.String value)
The default behavior of this method is to call addProperty(key, value) on the wrapped response object. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
The default behavior of this method is to call createElement() on the wrapped response object. |
java.lang.String |
encodeURL(java.lang.String path)
The default behavior of this method is to call encodeURL(path) on the wrapped response object. |
java.lang.String |
getNamespace()
The default behavior of this method is to call getNamespace() on the wrapped response object. |
PortletResponse |
getResponse()
Return the wrapped response object. |
void |
setProperty(java.lang.String key,
java.lang.String value)
The default behavior of this method is to call setProperty(key, value) on the wrapped response object. |
void |
setResponse(PortletResponse response)
Sets the response object being wrapped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletResponseWrapper(PortletResponse response)
ActionResponse
adaptor
wrapping the given response object.
response
- the action response to wrap
java.lang.IllegalArgumentException
- if the response is null
Method Detail |
---|
public void addProperty(java.lang.String key, java.lang.String value)
addProperty(key, value)
on the wrapped response object.
addProperty
in interface PortletResponse
key
- the key of the property to be returned to the portalvalue
- the value of the property to be returned to the portalpublic java.lang.String encodeURL(java.lang.String path)
encodeURL(path)
on the wrapped response object.
encodeURL
in interface PortletResponse
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
).
public java.lang.String getNamespace()
getNamespace()
on the wrapped response object.
getNamespace
in interface PortletResponse
public void setProperty(java.lang.String key, java.lang.String value)
setProperty(key, value)
on the wrapped response object.
setProperty
in interface PortletResponse
key
- the key of the property to be returned to the portalvalue
- the value of the property to be returned to the portalpublic PortletResponse getResponse()
public void setResponse(PortletResponse response)
response
- the response to set
java.lang.IllegalArgumentException
- if the response is null.public void addProperty(java.lang.String key, org.w3c.dom.Element element)
addProperty()
on the wrapped response object.
addProperty
in interface PortletResponse
key
- the key of the property to be returned to the portalelement
- the XML DOM element to be added to the responsepublic org.w3c.dom.Element createElement(java.lang.String tagName)
createElement()
on the wrapped response object.
createElement
in interface PortletResponse
tagName
- name of the element type to instantiate
public void addProperty(javax.servlet.http.Cookie cookie)
addProperty()
on the wrapped response object.
addProperty
in interface PortletResponse
cookie
- the cookie to be added to the response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |