public class MockServiceInterfaceRenderResponse extends org.springframework.mock.web.MockHttpServletResponse implements IMockServiceInterfaceRenderResponse, IServiceInterfaceRenderResponseSPI
Modifier and Type | Field and Description |
---|---|
protected lumis.lptf.portal.serviceinterface.MockServiceInterfaceRequest |
mockServiceInterfaceRequest |
APPLY_STYLE_FROM_DEFINITION, APPLY_STYLE_NONE, APPLY_STYLE_ONLY_IF_NOT_DEFINED, APPLY_STYLE_OVERRIDE
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY
Constructor and Description |
---|
MockServiceInterfaceRenderResponse(MockServiceInterfaceRenderRequest renderRequest) |
addDateHeader, addHeader, addIncludedUrl, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, getContentAsByteArray, getContentAsString, getContentLength, getContentLengthLong, getCookie, getCookies, getDateHeader, getErrorMessage, getForwardedUrl, getHeader, getHeaderNames, getHeaders, getHeaderValue, getHeaderValues, getIncludedUrl, getIncludedUrls, getOutputStream, getRedirectedUrl, getStatus, isCharset, isOutputStreamAccessAllowed, isWriterAccessAllowed, sendError, sendError, sendRedirect, setCharacterEncoding, setCommitted, setContentLength, setContentLengthLong, setDateHeader, setForwardedUrl, setHeader, setIncludedUrl, setIntHeader, setOutputStreamAccessAllowed, setStatus, setStatus, setWriterAccessAllowed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCookieMap, setNamespace
createActionURL, createRenderURL
addCookie, deleteCookie
createPortalURL
protected final lumis.lptf.portal.serviceinterface.MockServiceInterfaceRequest mockServiceInterfaceRequest
public MockServiceInterfaceRenderResponse(MockServiceInterfaceRenderRequest renderRequest)
public ResourceURL createResourceURL()
createResourceURL
in interface MimeResponse
public void flushBuffer()
flushBuffer
in interface MimeResponse
flushBuffer
in interface ServletResponse
flushBuffer
in class org.springframework.mock.web.MockHttpServletResponse
public int getBufferSize()
getBufferSize
in interface MimeResponse
getBufferSize
in interface ServletResponse
getBufferSize
in class org.springframework.mock.web.MockHttpServletResponse
public CacheControl getCacheControl()
getCacheControl
in interface MimeResponse
public String getCharacterEncoding()
getCharacterEncoding
in interface MimeResponse
getCharacterEncoding
in interface ServletResponse
getCharacterEncoding
in class org.springframework.mock.web.MockHttpServletResponse
public String getWriterOutput() throws UnsupportedEncodingException
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.getWriter()
.getWriterOutput
in interface IMockServiceInterfaceRenderResponse
UnsupportedEncodingException
public String getContentType()
getContentType
in interface MimeResponse
getContentType
in interface ServletResponse
getContentType
in class org.springframework.mock.web.MockHttpServletResponse
public Locale getLocale()
getLocale
in interface MimeResponse
getLocale
in interface ServletResponse
getLocale
in class org.springframework.mock.web.MockHttpServletResponse
public OutputStream getPortletOutputStream() throws IOException
getPortletOutputStream
in interface MimeResponse
IOException
public String getTitle()
IMockServiceInterfaceRenderResponse
RenderResponse.setTitle(String)
.getTitle
in interface IMockServiceInterfaceRenderResponse
public PortalPrintWriter getWriter() throws UnsupportedEncodingException
getWriter
in interface MimeResponse
getWriter
in interface ServletResponse
getWriter
in interface IServiceInterfaceRenderResponse
getWriter
in class org.springframework.mock.web.MockHttpServletResponse
UnsupportedEncodingException
public boolean isCommitted()
isCommitted
in interface MimeResponse
isCommitted
in interface ServletResponse
isCommitted
in class org.springframework.mock.web.MockHttpServletResponse
public void reset()
reset
in interface MimeResponse
reset
in interface ServletResponse
reset
in class org.springframework.mock.web.MockHttpServletResponse
public void resetBuffer()
resetBuffer
in interface MimeResponse
resetBuffer
in interface ServletResponse
resetBuffer
in class org.springframework.mock.web.MockHttpServletResponse
public void setBufferSize(int bufferSize)
setBufferSize
in interface MimeResponse
setBufferSize
in interface ServletResponse
setBufferSize
in class org.springframework.mock.web.MockHttpServletResponse
public void setContentType(String contentType)
setContentType
in interface MimeResponse
setContentType
in interface RenderResponse
setContentType
in interface ServletResponse
setContentType
in class org.springframework.mock.web.MockHttpServletResponse
public void setLocale(Locale locale)
IMockServiceInterfaceRenderResponse
MimeResponse.getLocale()
.setLocale
in interface ServletResponse
setLocale
in interface IMockServiceInterfaceRenderResponse
setLocale
in class org.springframework.mock.web.MockHttpServletResponse
locale
- the locale.public void setNextPossiblePortletModes(Collection<PortletMode> portletModes)
setNextPossiblePortletModes
in interface RenderResponse
public void setTitle(String title)
setTitle
in interface RenderResponse
public void applyStyle(int applyRule, String styleFile) throws ServiceException, PortalException
applyStyle
in interface IServiceInterfaceRenderResponse
ServiceException
PortalException
public String getBeforeWriterOutput() throws IOException
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.getBeforeWriter()
.getBeforeWriterOutput
in interface IMockServiceInterfaceRenderResponse
IOException
- if an error occur getting the writer.public PortalPrintWriter getBeforeWriter() throws IOException
getBeforeWriter
in interface IServiceInterfaceRenderResponse
IOException
@Deprecated public boolean isCommited()
isCommited
in interface IServiceInterfaceRenderResponse
public void setStyleId(String styleId) throws ServiceException, PortalException
setStyleId
in interface IServiceInterfaceRenderResponse
ServiceException
PortalException
public String getStyleId()
IMockServiceInterfaceRenderResponse
IServiceInterfaceRenderResponse.setStyleId(String)
method.getStyleId
in interface IMockServiceInterfaceRenderResponse
public 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
public ServiceContainerHttpServletResponse getServiceContainerHttpServletResponse()
IServiceInterfaceRenderResponseSPI
ServiceContainerHttpServletResponse
.getServiceContainerHttpServletResponse
in interface IServiceInterfaceRenderResponseSPI
ServiceContainerHttpServletResponse
.public String getResponseString()
IServiceInterfaceRenderResponseSPI
getResponseString
in interface IServiceInterfaceRenderResponseSPI
public void addCookie(Cookie cookie)
addCookie
in interface HttpServletResponse
addCookie
in interface IServiceInterfaceResponse
addCookie
in class org.springframework.mock.web.MockHttpServletResponse
public void deleteCookie(Cookie cookie)
deleteCookie
in interface IServiceInterfaceResponse
public Map<String,Cookie> getCookieMap()
IMockServiceInterfaceResponse
getCookieMap
in interface IMockServiceInterfaceResponse
IServiceInterfaceResponse.addCookie(Cookie)
,
IServiceInterfaceResponse.deleteCookie(Cookie)
public void addProperty(Cookie arg0)
addProperty
in interface PortletResponse
public void addProperty(String arg0, Element arg1)
addProperty
in interface PortletResponse
public Element createElement(String arg0) throws DOMException
createElement
in interface PortletResponse
DOMException
public IServiceInterfaceUrl createActionURL()
IURLFactory
createActionURL
in interface IURLFactory
IServiceInterface.processAction(lumis.portal.serviceinterface.IServiceInterfaceActionRequest, lumis.portal.serviceinterface.IServiceInterfaceActionResponse)
protected IServiceInterfaceUrl createServiceInterfaceURL(int urlType)
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 IURLFactory
IServiceInterface.render(lumis.portal.serviceinterface.IServiceInterfaceRenderRequest, lumis.portal.serviceinterface.IServiceInterfaceRenderResponse)
public String encodeURL(String url)
encodeURL
in interface PortletResponse
encodeURL
in interface HttpServletResponse
encodeURL
in class org.springframework.mock.web.MockHttpServletResponse
public void setNamespace(String namespace)
IMockServiceInterfaceResponse
PortletResponse.getNamespace()
.setNamespace
in interface IMockServiceInterfaceResponse
namespace
- the namespace.public String getNamespace()
getNamespace
in interface PortletResponse
public void setProperty(String key, String value)
setProperty
in interface PortletResponse
public void addProperty(String key, String value)
addProperty
in interface PortletResponse
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.