Package lumis.portal.serviceinterface
Class ServiceInterfaceRenderResponseSPIWrapper
- java.lang.Object
-
- lumis.portal.serviceinterface.ServiceInterfaceRenderResponseSPIWrapper
-
- All Implemented Interfaces:
MimeResponse
,PortletResponse
,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
-
Fields inherited from interface javax.portlet.MimeResponse
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
-
-
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 interfacePortletResponse
-
addProperty
public void addProperty(String key, Element element)
- Specified by:
addProperty
in interfacePortletResponse
-
addProperty
public void addProperty(String key, String value)
- Specified by:
addProperty
in interfacePortletResponse
-
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 interfaceMimeResponse
- 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 interfacePortletResponse
- 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 interfaceMimeResponse
- Returns:
- the URL object.
- See Also:
IServiceInterface.render(lumis.portal.serviceinterface.IServiceInterfaceRenderRequest, lumis.portal.serviceinterface.IServiceInterfaceRenderResponse)
-
createResourceURL
public ResourceURL createResourceURL()
- Specified by:
createResourceURL
in interfaceMimeResponse
-
deleteCookie
public void deleteCookie(Cookie cookie)
- Specified by:
deleteCookie
in interfaceIServiceInterfaceResponse
-
encodeURL
public String encodeURL(String path)
- Specified by:
encodeURL
in interfacePortletResponse
-
flushBuffer
public void flushBuffer() throws IOException
- Specified by:
flushBuffer
in interfaceMimeResponse
- Throws:
IOException
-
getBeforeWriter
public PortalPrintWriter getBeforeWriter() throws IOException
- Specified by:
getBeforeWriter
in interfaceIServiceInterfaceRenderResponse
- Throws:
IOException
-
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interfaceMimeResponse
-
getCacheControl
public CacheControl getCacheControl()
- Specified by:
getCacheControl
in interfaceMimeResponse
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceMimeResponse
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceMimeResponse
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceMimeResponse
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfacePortletResponse
-
getPortletOutputStream
public OutputStream getPortletOutputStream() throws IOException
- Specified by:
getPortletOutputStream
in interfaceMimeResponse
- Throws:
IOException
-
getWriter
public PrintWriter getWriter() throws IOException
- Specified by:
getWriter
in interfaceIServiceInterfaceRenderResponse
- Specified by:
getWriter
in interfaceMimeResponse
- Throws:
IOException
-
isCommited
public boolean isCommited()
- Specified by:
isCommited
in interfaceIServiceInterfaceRenderResponse
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interfaceMimeResponse
-
reset
public void reset()
- Specified by:
reset
in interfaceMimeResponse
-
resetBuffer
public void resetBuffer()
- Specified by:
resetBuffer
in interfaceMimeResponse
-
setBufferSize
public void setBufferSize(int size)
- Specified by:
setBufferSize
in interfaceMimeResponse
-
setContentType
public void setContentType(String type)
- Specified by:
setContentType
in interfaceMimeResponse
- Specified by:
setContentType
in interfaceRenderResponse
-
setNextPossiblePortletModes
public void setNextPossiblePortletModes(Collection<PortletMode> portletModes)
- Specified by:
setNextPossiblePortletModes
in interfaceRenderResponse
-
setProperty
public void setProperty(String key, String value)
- Specified by:
setProperty
in interfacePortletResponse
-
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 interfaceRenderResponse
-
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.
-
-