public class MockServiceInterfaceActionResponse extends org.springframework.mock.web.MockHttpServletResponse implements IMockServiceInterfaceActionResponse, IServiceInterfaceActionResponseSPI
Modifier and Type | Field and Description |
---|---|
protected lumis.lptf.portal.serviceinterface.MockServiceInterfaceRequest |
mockServiceInterfaceRequest |
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 |
---|
MockServiceInterfaceActionResponse(MockServiceInterfaceActionRequest actionRequest) |
addDateHeader, addHeader, addIncludedUrl, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, flushBuffer, getBufferSize, getCharacterEncoding, getContentAsByteArray, getContentAsString, getContentLength, getContentLengthLong, getContentType, getCookie, getCookies, getDateHeader, getErrorMessage, getForwardedUrl, getHeader, getHeaderNames, getHeaders, getHeaderValue, getHeaderValues, getIncludedUrl, getIncludedUrls, getLocale, getOutputStream, getRedirectedUrl, getStatus, getWriter, isCharset, isCommitted, isOutputStreamAccessAllowed, isWriterAccessAllowed, reset, resetBuffer, sendError, sendError, setBufferSize, setCharacterEncoding, setCommitted, setContentLength, setContentLengthLong, setContentType, setDateHeader, setForwardedUrl, setHeader, setIncludedUrl, setIntHeader, setLocale, setOutputStreamAccessAllowed, setStatus, setStatus, setWriterAccessAllowed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCookieMap, setNamespace
addCookie, deleteCookie
createActionURL, createPortalURL, createRenderURL
protected final lumis.lptf.portal.serviceinterface.MockServiceInterfaceRequest mockServiceInterfaceRequest
public MockServiceInterfaceActionResponse(MockServiceInterfaceActionRequest actionRequest)
public PortletMode getPortletMode()
getPortletMode
in interface StateAwareResponse
public String getRedirectedURL()
IMockServiceInterfaceActionResponse
sendRedirect
.getRedirectedURL
in interface IMockServiceInterfaceActionResponse
ActionResponse.sendRedirect(String)
,
ActionResponse.sendRedirect(String, String)
public Map<String,String[]> getRenderParameterMap()
getRenderParameterMap
in interface StateAwareResponse
public WindowState getWindowState()
getWindowState
in interface StateAwareResponse
public void removePublicRenderParameter(String name)
removePublicRenderParameter
in interface StateAwareResponse
public void sendRedirect(String location, String renderUrlParamName) throws IOException
sendRedirect
in interface ActionResponse
IOException
public void sendRedirect(String location) throws IOException
sendRedirect
in interface ActionResponse
sendRedirect
in interface HttpServletResponse
sendRedirect
in class org.springframework.mock.web.MockHttpServletResponse
IOException
public void setEvent(QName name, Serializable value)
setEvent
in interface StateAwareResponse
public void setEvent(String name, Serializable value)
setEvent
in interface StateAwareResponse
public void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode
in interface StateAwareResponse
PortletModeException
public void setRenderParameter(String key, String value)
setRenderParameter
in interface StateAwareResponse
public void setRenderParameter(String key, String[] values)
setRenderParameter
in interface StateAwareResponse
public void setRenderParameters(Map<String,String[]> parameters)
setRenderParameters
in interface StateAwareResponse
public void setWindowState(WindowState windowState) throws WindowStateException
setWindowState
in interface StateAwareResponse
WindowStateException
@Deprecated public String[] getRenderParameter(String key)
IServiceInterfaceActionResponse
getRenderParameter
in interface IServiceInterfaceActionResponse
@Deprecated public Map<String,String[]> getRenderParameters()
IServiceInterfaceActionResponse
getRenderParameters
in interface IServiceInterfaceActionResponse
public void setStatusInternal(int statusCode, String message)
IServiceInterfaceActionResponseSPI
setStatusInternal
in interface IServiceInterfaceActionResponseSPI
statusCode
- the status code for the responsemessage
- the messagepublic 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.