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
,IURLFactory
- Direct Known Subclasses:
BufferedServiceInterfaceRenderResponseSPI
public class ServiceInterfaceRenderResponseSPIWrapper extends 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: 17104 $ $Date: 2015-03-17 18:18:33 -0300 (Tue, 17 Mar 2015) $
-
-
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
-
-
-
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(Cookie cookie)
- Specified by:
addCookie
in interfaceIServiceInterfaceResponse
-
addProperty
public void addProperty(Cookie cookie)
- Specified by:
addProperty
in interfacejavax.portlet.PortletResponse
-
addProperty
public void addProperty(String key, Element element)
- Specified by:
addProperty
in interfacejavax.portlet.PortletResponse
-
addProperty
public void addProperty(String key, String value)
- Specified by:
addProperty
in interfacejavax.portlet.PortletResponse
-
applyStyle
public void applyStyle(int applyRule, 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 Element createElement(String tagName) throws DOMException
- Specified by:
createElement
in interfacejavax.portlet.PortletResponse
- Throws:
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(Cookie cookie)
- Specified by:
deleteCookie
in interfaceIServiceInterfaceResponse
-
encodeURL
public String encodeURL(String path)
- Specified by:
encodeURL
in interfacejavax.portlet.PortletResponse
-
flushBuffer
public void flushBuffer() throws IOException
- Specified by:
flushBuffer
in interfacejavax.portlet.MimeResponse
- Throws:
IOException
-
getBeforeWriter
public PortalPrintWriter getBeforeWriter() throws IOException
- Specified by:
getBeforeWriter
in interfaceIServiceInterfaceRenderResponse
- Throws:
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 String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfacejavax.portlet.MimeResponse
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacejavax.portlet.MimeResponse
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfacejavax.portlet.MimeResponse
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfacejavax.portlet.PortletResponse
-
getPortletOutputStream
public OutputStream getPortletOutputStream() throws IOException
- Specified by:
getPortletOutputStream
in interfacejavax.portlet.MimeResponse
- Throws:
IOException
-
getWriter
public PrintWriter getWriter() throws IOException
- Specified by:
getWriter
in interfaceIServiceInterfaceRenderResponse
- Specified by:
getWriter
in interfacejavax.portlet.MimeResponse
- Throws:
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(String type)
- Specified by:
setContentType
in interfacejavax.portlet.MimeResponse
- Specified by:
setContentType
in interfacejavax.portlet.RenderResponse
-
setNextPossiblePortletModes
public void setNextPossiblePortletModes(Collection<javax.portlet.PortletMode> portletModes)
- Specified by:
setNextPossiblePortletModes
in interfacejavax.portlet.RenderResponse
-
setProperty
public void setProperty(String key, String value)
- Specified by:
setProperty
in interfacejavax.portlet.PortletResponse
-
setStyleId
public void setStyleId(String styleId) throws ServiceException, PortalException
- Specified by:
setStyleId
in interfaceIServiceInterfaceRenderResponse
- Throws:
ServiceException
PortalException
-
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interfacejavax.portlet.RenderResponse
-
getServiceContainerHttpServletResponse
public ServiceContainerHttpServletResponse getServiceContainerHttpServletResponse()
Description copied from interface:IServiceInterfaceRenderResponseSPI
Returns theServiceContainerHttpServletResponse
.- Specified by:
getServiceContainerHttpServletResponse
in interfaceIServiceInterfaceRenderResponseSPI
- Returns:
- the
ServiceContainerHttpServletResponse
.
-
getResponseString
public String getResponseString()
Description copied from interface:IServiceInterfaceRenderResponseSPI
Returns this response's output string.- Specified by:
getResponseString
in interfaceIServiceInterfaceRenderResponseSPI
- Returns:
- this response's output string.
-
-