|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.lptf.portal.serviceinterface.MockServiceInterfaceRenderResponse
public class MockServiceInterfaceRenderResponse
Implementation for IMockServiceInterfaceRenderResponse interface.
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 |
Constructor Summary | |
---|---|
MockServiceInterfaceRenderResponse(IServiceInterfaceRenderRequest renderRequest)
|
Method Summary | |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie)
|
void |
addProperty(javax.servlet.http.Cookie arg0)
|
void |
addProperty(java.lang.String arg0,
org.w3c.dom.Element arg1)
|
void |
addProperty(java.lang.String key,
java.lang.String value)
|
void |
applyStyle(int applyRule,
java.lang.String styleFile)
|
IServiceInterfaceUrl |
createActionURL()
Creates an action URL. |
org.w3c.dom.Element |
createElement(java.lang.String arg0)
|
IServiceInterfaceUrl |
createPortalURL()
Creates a URL for accessing a portal page. |
IServiceInterfaceUrl |
createRenderURL()
Creates a render URL. |
ResourceURL |
createResourceURL()
|
void |
deleteCookie(javax.servlet.http.Cookie cookie)
|
java.lang.String |
encodeURL(java.lang.String path)
|
void |
flushBuffer()
|
PortalPrintWriter |
getBeforeWriter()
|
java.lang.String |
getBeforeWriterOutput()
Returns the output written to IServiceInterfaceRenderResponse.getBeforeWriter() . |
int |
getBufferSize()
|
CacheControl |
getCacheControl()
|
java.lang.String |
getCharacterEncoding()
|
java.lang.String |
getContentType()
|
java.util.Map<java.lang.String,javax.servlet.http.Cookie> |
getCookieMap()
Returns a map containing the cookies set in this response. |
java.util.Locale |
getLocale()
|
java.lang.String |
getNamespace()
|
java.io.OutputStream |
getPortletOutputStream()
|
int |
getStyleApplyRule()
Returns the style apply rule set by the call to IServiceInterfaceRenderResponse.applyStyle(int, String) . |
java.lang.String |
getStyleFile()
Returns the file path set by the call to IServiceInterfaceRenderResponse.applyStyle(int, String) . |
java.lang.String |
getStyleId()
Returns the styleId set by a call to the IServiceInterfaceRenderResponse.setStyleId(String) method. |
java.lang.String |
getTitle()
Returns the title set by RenderResponse.setTitle(String) . |
PortalPrintWriter |
getWriter()
|
java.lang.String |
getWriterOutput()
Returns the output written to IServiceInterfaceRenderResponse.getWriter() . |
boolean |
isCommited()
Deprecated. |
boolean |
isCommitted()
|
void |
reset()
|
void |
resetBuffer()
|
void |
setBufferSize(int bufferSize)
|
void |
setContentType(java.lang.String contentType)
|
void |
setLocale(java.util.Locale locale)
Sets the locale returned by MimeResponse.getLocale() . |
void |
setNamespace(java.lang.String namespace)
Sets the namespace string returned by PortletResponse.getNamespace() . |
void |
setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
|
void |
setStyleId(java.lang.String styleId)
|
void |
setTitle(java.lang.String title)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockServiceInterfaceRenderResponse(IServiceInterfaceRenderRequest renderRequest)
Method Detail |
---|
public void addCookie(javax.servlet.http.Cookie cookie)
addCookie
in interface IServiceInterfaceResponse
public void addProperty(javax.servlet.http.Cookie arg0)
addProperty
in interface PortletResponse
public void addProperty(java.lang.String arg0, org.w3c.dom.Element arg1)
addProperty
in interface PortletResponse
public void addProperty(java.lang.String key, java.lang.String value)
addProperty
in interface PortletResponse
public IServiceInterfaceUrl createActionURL()
IURLFactory
createActionURL
in interface MimeResponse
createActionURL
in interface IServiceInterfaceRenderResponse
createActionURL
in interface IURLFactory
IServiceInterface.processAction(lumis.portal.serviceinterface.IServiceInterfaceActionRequest, lumis.portal.serviceinterface.IServiceInterfaceActionResponse)
public org.w3c.dom.Element createElement(java.lang.String arg0) throws org.w3c.dom.DOMException
createElement
in interface PortletResponse
org.w3c.dom.DOMException
public IServiceInterfaceUrl createPortalURL()
IURLFactory
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.
createPortalURL
in interface IURLFactory
IServiceInterfaceUrl.setPageId(String)
,
IServiceInterfaceUrl.setChannelId(String)
public IServiceInterfaceUrl createRenderURL()
IURLFactory
createRenderURL
in interface MimeResponse
createRenderURL
in interface IServiceInterfaceRenderResponse
createRenderURL
in interface IURLFactory
IServiceInterface.render(lumis.portal.serviceinterface.IServiceInterfaceRenderRequest, lumis.portal.serviceinterface.IServiceInterfaceRenderResponse)
public void deleteCookie(javax.servlet.http.Cookie cookie)
deleteCookie
in interface IServiceInterfaceResponse
public java.lang.String encodeURL(java.lang.String path)
encodeURL
in interface PortletResponse
public java.util.Map<java.lang.String,javax.servlet.http.Cookie> getCookieMap()
IMockServiceInterfaceResponse
getCookieMap
in interface IMockServiceInterfaceResponse
IServiceInterfaceResponse.addCookie(Cookie)
,
IServiceInterfaceResponse.deleteCookie(Cookie)
public java.lang.String getNamespace()
getNamespace
in interface PortletResponse
public void setNamespace(java.lang.String namespace)
IMockServiceInterfaceResponse
PortletResponse.getNamespace()
.
setNamespace
in interface IMockServiceInterfaceResponse
namespace
- the namespace.public void setProperty(java.lang.String key, java.lang.String value)
setProperty
in interface PortletResponse
public ResourceURL createResourceURL()
createResourceURL
in interface MimeResponse
public void flushBuffer()
flushBuffer
in interface MimeResponse
public int getBufferSize()
getBufferSize
in interface MimeResponse
public CacheControl getCacheControl()
getCacheControl
in interface MimeResponse
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface MimeResponse
public java.lang.String getWriterOutput() throws java.io.UnsupportedEncodingException
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.getWriter()
.
getWriterOutput
in interface IMockServiceInterfaceRenderResponse
java.io.UnsupportedEncodingException
public java.lang.String getContentType()
getContentType
in interface MimeResponse
public java.util.Locale getLocale()
getLocale
in interface MimeResponse
public java.io.OutputStream getPortletOutputStream() throws java.io.IOException
getPortletOutputStream
in interface MimeResponse
java.io.IOException
public java.lang.String getTitle()
IMockServiceInterfaceRenderResponse
RenderResponse.setTitle(String)
.
getTitle
in interface IMockServiceInterfaceRenderResponse
public PortalPrintWriter getWriter() throws java.io.UnsupportedEncodingException
getWriter
in interface MimeResponse
getWriter
in interface IServiceInterfaceRenderResponse
java.io.UnsupportedEncodingException
public boolean isCommitted()
isCommitted
in interface MimeResponse
public void reset()
reset
in interface MimeResponse
public void resetBuffer()
resetBuffer
in interface MimeResponse
public void setBufferSize(int bufferSize)
setBufferSize
in interface MimeResponse
public void setContentType(java.lang.String contentType)
setContentType
in interface MimeResponse
setContentType
in interface RenderResponse
public void setLocale(java.util.Locale locale)
IMockServiceInterfaceRenderResponse
MimeResponse.getLocale()
.
setLocale
in interface IMockServiceInterfaceRenderResponse
locale
- the locale.public void setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
setNextPossiblePortletModes
in interface RenderResponse
public void setTitle(java.lang.String title)
setTitle
in interface RenderResponse
public void applyStyle(int applyRule, java.lang.String styleFile) throws ServiceException, PortalException
applyStyle
in interface IServiceInterfaceRenderResponse
ServiceException
PortalException
public java.lang.String getBeforeWriterOutput() throws java.io.IOException
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.getBeforeWriter()
.
getBeforeWriterOutput
in interface IMockServiceInterfaceRenderResponse
java.io.IOException
- if an error occur getting the writer.public PortalPrintWriter getBeforeWriter() throws java.io.IOException
getBeforeWriter
in interface IServiceInterfaceRenderResponse
java.io.IOException
@Deprecated public boolean isCommited()
isCommited
in interface IServiceInterfaceRenderResponse
public void setStyleId(java.lang.String styleId) throws ServiceException, PortalException
setStyleId
in interface IServiceInterfaceRenderResponse
ServiceException
PortalException
public java.lang.String getStyleId()
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.setStyleId(String)
method.
getStyleId
in interface IMockServiceInterfaceRenderResponse
public java.lang.String getStyleFile()
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.applyStyle(int, String)
.
getStyleFile
in interface IMockServiceInterfaceRenderResponse
public int getStyleApplyRule()
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.applyStyle(int, String)
.
See the APPLY_* constants for possible values.
getStyleApplyRule
in interface IMockServiceInterfaceRenderResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |