Package lumis.portal.serviceinterface
Class ServiceInterfaceRenderResponseSPIWrapper
- java.lang.Object
-
- lumis.portal.serviceinterface.ServiceInterfaceRenderResponseSPIWrapper
-
- All Implemented Interfaces:
javax.portlet.MimeResponse
,javax.portlet.PortletResponse
,javax.portlet.RenderResponse
,IServiceInterfaceRenderResponse
,IServiceInterfaceRenderResponseSPI
,IServiceInterfaceResponse
,IServiceInterfaceResponseSPI
,IURLFactory
- Direct Known Subclasses:
BufferedServiceInterfaceRenderResponseSPI
public class ServiceInterfaceRenderResponseSPIWrapper extends java.lang.Object implements IServiceInterfaceRenderResponseSPI
Provides a convenient implementation of the IServiceInterfaceRenderResponseSPI interface that can be subclassed by developers wishing to adapt the request to a Servlet. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.- Since:
- 7.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRenderResponse
APPLY_STYLE_FROM_DEFINITION, APPLY_STYLE_NONE, APPLY_STYLE_ONLY_IF_NOT_DEFINED, APPLY_STYLE_OVERRIDE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCookie(javax.servlet.http.Cookie cookie)
void
addProperty(java.lang.String key, java.lang.String value)
void
addProperty(java.lang.String key, org.w3c.dom.Element element)
void
addProperty(javax.servlet.http.Cookie cookie)
void
applyStyle(int applyRule, java.lang.String styleFile)
IServiceInterfaceUrl
createActionURL()
Creates an action URL.org.w3c.dom.Element
createElement(java.lang.String tagName)
IServiceInterfaceUrl
createPortalURL()
Creates a URL for accessing a portal page.IServiceInterfaceUrl
createRenderURL()
Creates a render URL.javax.portlet.ResourceURL
createResourceURL()
void
deleteCookie(javax.servlet.http.Cookie cookie)
java.lang.String
encodeURL(java.lang.String path)
void
flushBuffer()
PortalPrintWriter
getBeforeWriter()
int
getBufferSize()
javax.portlet.CacheControl
getCacheControl()
java.lang.String
getCharacterEncoding()
java.lang.String
getContentType()
java.util.Locale
getLocale()
java.lang.String
getNamespace()
java.io.OutputStream
getPortletOutputStream()
IServiceInterfaceRenderResponseSPI
getResponse()
Returns the wrapped response.java.lang.String
getResponseString()
Returns this response's output string.ServiceContainerHttpServletResponse
getServiceContainerHttpServletResponse()
Returns theServiceContainerHttpServletResponse
.java.io.PrintWriter
getWriter()
boolean
isCommited()
boolean
isCommitted()
void
reset()
void
resetBuffer()
void
setBufferSize(int size)
void
setContentType(java.lang.String type)
void
setNextPossiblePortletModes(java.util.Collection<javax.portlet.PortletMode> portletModes)
void
setProperty(java.lang.String key, java.lang.String value)
void
setResponse(IServiceInterfaceRenderResponseSPI response)
Sets the wrapped response.void
setStyleId(java.lang.String styleId)
void
setTitle(java.lang.String title)
-
-
-
Method Detail
-
getResponse
public IServiceInterfaceRenderResponseSPI getResponse()
Returns the wrapped response.- Returns:
- IServiceInterfaceRenderResponseSPI the wrapped response
- Since:
- 7.0.0
-
setResponse
public void setResponse(IServiceInterfaceRenderResponseSPI response)
Sets the wrapped response.- Parameters:
IServiceInterfaceRenderResponseSPI
- wrapped response- Since:
- 7.0.0
-
addCookie
public void addCookie(javax.servlet.http.Cookie cookie)
- Specified by:
addCookie
in interfaceIServiceInterfaceResponse
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie)
- Specified by:
addProperty
in interfacejavax.portlet.PortletResponse
-
addProperty
public void addProperty(java.lang.String key, org.w3c.dom.Element element)
- Specified by:
addProperty
in interfacejavax.portlet.PortletResponse
-
addProperty
public void addProperty(java.lang.String key, java.lang.String value)
- Specified by:
addProperty
in interfacejavax.portlet.PortletResponse
-
applyStyle
public void applyStyle(int applyRule, java.lang.String styleFile) throws ServiceException, PortalException
- Specified by:
applyStyle
in interfaceIServiceInterfaceRenderResponse
- Throws:
ServiceException
PortalException
-
createActionURL
public IServiceInterfaceUrl createActionURL()
Description copied from interface:IURLFactory
Creates an action URL.- Specified by:
createActionURL
in interfaceIServiceInterfaceRenderResponse
- Specified by:
createActionURL
in interfaceIURLFactory
- Specified by:
createActionURL
in interfacejavax.portlet.MimeResponse
- Returns:
- the URL object.
- See Also:
IServiceInterface.processAction(lumis.portal.serviceinterface.IServiceInterfaceActionRequest, lumis.portal.serviceinterface.IServiceInterfaceActionResponse)
-
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
- Specified by:
createElement
in interfacejavax.portlet.PortletResponse
- Throws:
org.w3c.dom.DOMException
-
createPortalURL
public IServiceInterfaceUrl createPortalURL()
Description copied from interface:IURLFactory
Creates a URL for accessing a portal page.The returned URL object will not have its destination specified, so it will refer to the portal home by default. Its methods may be used to specify the URL destination.
- Specified by:
createPortalURL
in interfaceIURLFactory
- Returns:
- the URL object.
- See Also:
IServiceInterfaceUrl.setPageId(String)
,IServiceInterfaceUrl.setChannelId(String)
-
createRenderURL
public IServiceInterfaceUrl createRenderURL()
Description copied from interface:IURLFactory
Creates a render URL.- Specified by:
createRenderURL
in interfaceIServiceInterfaceRenderResponse
- Specified by:
createRenderURL
in interfaceIURLFactory
- Specified by:
createRenderURL
in interfacejavax.portlet.MimeResponse
- Returns:
- the URL object.
- See Also:
IServiceInterface.render(lumis.portal.serviceinterface.IServiceInterfaceRenderRequest, lumis.portal.serviceinterface.IServiceInterfaceRenderResponse)
-
createResourceURL
public javax.portlet.ResourceURL createResourceURL()
- Specified by:
createResourceURL
in interfacejavax.portlet.MimeResponse
-
deleteCookie
public void deleteCookie(javax.servlet.http.Cookie cookie)
- Specified by:
deleteCookie
in interfaceIServiceInterfaceResponse
-
encodeURL
public java.lang.String encodeURL(java.lang.String path)
- Specified by:
encodeURL
in interfacejavax.portlet.PortletResponse
-
flushBuffer
public void flushBuffer() throws java.io.IOException
- Specified by:
flushBuffer
in interfacejavax.portlet.MimeResponse
- Throws:
java.io.IOException
-
getBeforeWriter
public PortalPrintWriter getBeforeWriter() throws java.io.IOException
- Specified by:
getBeforeWriter
in interfaceIServiceInterfaceRenderResponse
- Throws:
java.io.IOException
-
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interfacejavax.portlet.MimeResponse
-
getCacheControl
public javax.portlet.CacheControl getCacheControl()
- Specified by:
getCacheControl
in interfacejavax.portlet.MimeResponse
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfacejavax.portlet.MimeResponse
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfacejavax.portlet.MimeResponse
-
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interfacejavax.portlet.MimeResponse
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfacejavax.portlet.PortletResponse
-
getPortletOutputStream
public java.io.OutputStream getPortletOutputStream() throws java.io.IOException
- Specified by:
getPortletOutputStream
in interfacejavax.portlet.MimeResponse
- Throws:
java.io.IOException
-
getWriter
public java.io.PrintWriter getWriter() throws java.io.IOException
- Specified by:
getWriter
in interfaceIServiceInterfaceRenderResponse
- Specified by:
getWriter
in interfacejavax.portlet.MimeResponse
- Throws:
java.io.IOException
-
isCommited
public boolean isCommited()
- Specified by:
isCommited
in interfaceIServiceInterfaceRenderResponse
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interfacejavax.portlet.MimeResponse
-
reset
public void reset()
- Specified by:
reset
in interfacejavax.portlet.MimeResponse
-
resetBuffer
public void resetBuffer()
- Specified by:
resetBuffer
in interfacejavax.portlet.MimeResponse
-
setBufferSize
public void setBufferSize(int size)
- Specified by:
setBufferSize
in interfacejavax.portlet.MimeResponse
-
setContentType
public void setContentType(java.lang.String type)
- Specified by:
setContentType
in interfacejavax.portlet.MimeResponse
- Specified by:
setContentType
in interfacejavax.portlet.RenderResponse
-
setNextPossiblePortletModes
public void setNextPossiblePortletModes(java.util.Collection<javax.portlet.PortletMode> portletModes)
- Specified by:
setNextPossiblePortletModes
in interfacejavax.portlet.RenderResponse
-
setProperty
public void setProperty(java.lang.String key, java.lang.String value)
- Specified by:
setProperty
in interfacejavax.portlet.PortletResponse
-
setStyleId
public void setStyleId(java.lang.String styleId) throws ServiceException, PortalException
- Specified by:
setStyleId
in interfaceIServiceInterfaceRenderResponse
- Throws:
ServiceException
PortalException
-
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitle
in interfacejavax.portlet.RenderResponse
-
getServiceContainerHttpServletResponse
public ServiceContainerHttpServletResponse getServiceContainerHttpServletResponse()
Description copied from interface:IServiceInterfaceResponseSPI
Returns theServiceContainerHttpServletResponse
.- Specified by:
getServiceContainerHttpServletResponse
in interfaceIServiceInterfaceResponseSPI
- Returns:
- the
ServiceContainerHttpServletResponse
.
-
getResponseString
public java.lang.String getResponseString()
Description copied from interface:IServiceInterfaceRenderResponseSPI
Returns this response's output string.- Specified by:
getResponseString
in interfaceIServiceInterfaceRenderResponseSPI
- Returns:
- this response's output string.
-
-