public class MockServiceInterfaceActionRequest extends org.springframework.mock.web.MockHttpServletRequest implements IMockServiceInterfaceActionRequest, IServiceInterfaceRequestSPI
PortletRequest.P3PUserInfos
DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE
ACTION_NAME
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
MockServiceInterfaceActionRequest() |
addHeader, addParameter, addParameter, addParameters, addPart, addPreferredLocale, addUserRole, authenticate, changeSessionId, checkActive, clearAttributes, close, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getContentLengthLong, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, invalidate, isActive, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeParameter, setAsyncContext, setAsyncStarted, setAsyncSupported, setAttribute, setAuthType, setContextPath, setCookies, setDispatcherType, setLocalAddr, setLocalName, setLocalPort, setParameter, setParameter, setParameters, setPathInfo, setPreferredLocales, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setUserPrincipal, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFileParameter, addHeader, addProperty, setAuthType, setCallerServiceInterfaceInstanceId, setCallerServiceInterfaceMenuLevel, setContextPath, setCookies, setFileParameterMap, setHeaderMap, setLocales, setPageConfig, setParameter, setParameter, setParameterMap, setPortletMode, setPreview, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setServiceConfig, setServiceInstanceConfig, setServiceInstanceDebugLevel, setServiceInterfaceConfig, setServiceInterfaceInstanceConfig, setSessionConfig, setWindowState
getAttributeNames, getCallerServiceInterfaceInstanceId, getCallerServiceInterfaceInstancePreferences, getCallerServiceInterfaceMenuLevel, getCookie, getCookies, getFileParameter, getHeader, getMode, getPageConfig, getPageWebResource, getParameterMap, getParameterNames, getPreferences, getRequestDispatcher, getServiceConfig, getServiceInstanceConfig, getServiceInstanceDebugLevel, getServiceInterfaceConfig, getServiceInterfaceInstanceConfig, getServiceInterfaceInstanceId, getSessionConfig, getWebsiteBaseURL, isPreview, setMode
getApplicationRequestedPath, getAttribute, getContextPath, getParameter, getParameterValues, getPortalMode, getScheme, getServerName, getServerPort, isPageCachedInFile, isSecure, removeAttribute, setAttribute
getAttribute, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
getFunctionMapper, getHttpServletRequest, getReplaceInterfacesStorage, getServiceContainerHttpServletRequest, getVariableResolver
public String getCharacterEncoding()
getCharacterEncoding
in interface ClientDataRequest
getCharacterEncoding
in interface ServletRequest
getCharacterEncoding
in class org.springframework.mock.web.MockHttpServletRequest
public int getContentLength()
getContentLength
in interface ClientDataRequest
getContentLength
in interface ServletRequest
getContentLength
in class org.springframework.mock.web.MockHttpServletRequest
public String getContentType()
getContentType
in interface ClientDataRequest
getContentType
in interface ServletRequest
getContentType
in class org.springframework.mock.web.MockHttpServletRequest
public String getMethod()
getMethod
in interface ClientDataRequest
getMethod
in interface HttpServletRequest
getMethod
in class org.springframework.mock.web.MockHttpServletRequest
public InputStream getPortletInputStream() throws IOException
getPortletInputStream
in interface ClientDataRequest
IOException
public BufferedReader getReader() throws UnsupportedEncodingException
getReader
in interface ClientDataRequest
getReader
in interface ServletRequest
getReader
in class org.springframework.mock.web.MockHttpServletRequest
UnsupportedEncodingException
public void setCharacterEncoding(String characterEncoding)
setCharacterEncoding
in interface ClientDataRequest
setCharacterEncoding
in interface ServletRequest
setCharacterEncoding
in class org.springframework.mock.web.MockHttpServletRequest
public void setContent(byte[] content)
IMockServiceInterfaceActionRequest
ClientDataRequest.getPortletInputStream()
.setContent
in interface IMockServiceInterfaceActionRequest
setContent
in class org.springframework.mock.web.MockHttpServletRequest
content
- the content.public void setContentType(String contentType)
IMockServiceInterfaceActionRequest
ClientDataRequest.getContentType()
.setContentType
in interface IMockServiceInterfaceActionRequest
setContentType
in class org.springframework.mock.web.MockHttpServletRequest
contentType
- the content type.public void setMethod(String method)
IMockServiceInterfaceActionRequest
ClientDataRequest.getMethod()
.setMethod
in interface IMockServiceInterfaceActionRequest
setMethod
in class org.springframework.mock.web.MockHttpServletRequest
method
- the method.public IBusinessContext getBusinessContext()
IServiceInterfaceRequest
getBusinessContext
in interface IServiceInterfaceRequest
getBusinessContext
in interface IPageWebResourceRequest
public void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.setCallerServiceInterfaceInstanceId
in interface IMockServiceInterfaceRequest
callerServiceInterfaceInstanceId
- the new callerServiceInterfaceInstanceId.public String getCallerServiceInterfaceInstanceId()
getCallerServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public ServiceInterfaceMenuLevel getCallerServiceInterfaceMenuLevel()
IServiceInterfaceRequest
getCallerServiceInterfaceMenuLevel
in interface IServiceInterfaceRequest
public void setCallerServiceInterfaceMenuLevel(ServiceInterfaceMenuLevel callerServiceInterfaceMenuLevel)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.setCallerServiceInterfaceMenuLevel
in interface IMockServiceInterfaceRequest
callerServiceInterfaceMenuLevel
- the menu level.public IPreferences getCallerServiceInterfaceInstancePreferences()
IServiceInterfaceRequest
caller service interface instance
at level that corresponds to the menu level returned by IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.getCallerServiceInterfaceInstancePreferences
in interface IServiceInterfaceRequest
public Cookie getCookie(String cookieName)
IPageWebResourceRequest
null
if the cookie does not exist in request.getCookie
in interface IServiceInterfaceRequest
getCookie
in interface IPageWebResourceRequest
cookieName
- the requested cookie name.null
if the cookie does not exist in request.public FileParameter getFileParameter(String parameterName)
IPageWebResourceRequest
getFileParameter
in interface IServiceInterfaceRequest
getFileParameter
in interface IPageWebResourceRequest
parameterName
- the parameter name.public void addFileParameter(String name, FileParameter fileParameter)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getFileParameter(String)
.addFileParameter
in interface IMockServiceInterfaceRequest
name
- the name of the FileParameter.fileParameter
- the FileParameter instance.public void setFileParameterMap(Map<String,FileParameter> fileParameterMap)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getFileParameter(String)
.setFileParameterMap
in interface IMockServiceInterfaceRequest
fileParameterMap
- an instance of Mappublic String getHeader(String header)
IPageWebResourceRequest
null
if the header does not exist in request.getHeader
in interface HttpServletRequest
getHeader
in interface IServiceInterfaceRequest
getHeader
in interface IPageWebResourceRequest
getHeader
in class org.springframework.mock.web.MockHttpServletRequest
header
- the requested header name.null
if the header does not exist in request.public void addHeader(String key, String value)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getHeader(String)
.addHeader
in interface IMockServiceInterfaceRequest
key
- string representing the key.value
- the value.public void setHeaderMap(Map<String,String> headerMap)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getHeader(String)
will be replaced.setHeaderMap
in interface IMockServiceInterfaceRequest
headerMap
- the instance of MapIServiceInterfaceRequest.getHeader(String)
public int getMode()
getMode
in interface IServiceInterfaceRequest
public PageConfig getPageConfig()
getPageConfig
in interface IServiceInterfaceRequest
public void setPageConfig(PageConfig pageConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getPageConfig()
.setPageConfig
in interface IMockServiceInterfaceRequest
pageConfig
- the instance of PageConfig that will be used on the tests.public IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletRequest
getRequestDispatcher
in interface IServiceInterfaceRequest
getRequestDispatcher
in class org.springframework.mock.web.MockHttpServletRequest
public ServiceConfig getServiceConfig()
getServiceConfig
in interface IServiceInterfaceRequest
public void setServiceConfig(ServiceConfig serviceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceConfig()
.setServiceConfig
in interface IMockServiceInterfaceRequest
serviceConfig
- the instance of ServiceConfig that will be used on the tests.public ServiceInstanceConfig getServiceInstanceConfig()
getServiceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInstanceConfig()
.setServiceInstanceConfig
in interface IMockServiceInterfaceRequest
serviceInstanceConfig
- the instance of ServiceInstanceConfig that will be used on the tests.public int getServiceInstanceDebugLevel()
getServiceInstanceDebugLevel
in interface IServiceInterfaceRequest
public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInstanceDebugLevel()
.setServiceInstanceDebugLevel
in interface IMockServiceInterfaceRequest
serviceInstanceDebugLevel
- the new level.public ServiceInterfaceConfig getServiceInterfaceConfig()
getServiceInterfaceConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInterfaceConfig()
.setServiceInterfaceConfig
in interface IMockServiceInterfaceRequest
public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
getServiceInterfaceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.setServiceInterfaceInstanceConfig
in interface IMockServiceInterfaceRequest
public String getServiceInterfaceInstanceId()
getServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public SessionConfig getSessionConfig()
IPageWebResourceRequest
getSessionConfig
in interface IServiceInterfaceRequest
getSessionConfig
in interface IPageWebResourceRequest
public void setSessionConfig(SessionConfig sessionConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getSessionConfig()
.setSessionConfig
in interface IMockServiceInterfaceRequest
setSessionConfig
in interface IServiceInterfaceRequest
public boolean isPreview()
IPageWebResourceRequest
isPreview
in interface IServiceInterfaceRequest
isPreview
in interface IPageWebResourceRequest
public void setPreview(boolean preview)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.isPreview()
.setPreview
in interface IMockServiceInterfaceRequest
preview
- the boolean valuepublic void setMode(int mode)
setMode
in interface IServiceInterfaceRequest
public Map<String,String[]> getPrivateParameterMap()
getPrivateParameterMap
in interface PortletRequest
public Map<String,String[]> getPublicParameterMap()
getPublicParameterMap
in interface PortletRequest
public String getWindowID()
getWindowID
in interface PortletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface PortletRequest
getUserPrincipal
in interface HttpServletRequest
getUserPrincipal
in class org.springframework.mock.web.MockHttpServletRequest
public void setParameterMap(Map<String,String[]> parameters)
IMockServiceInterfaceRequest
setParameterMap
in interface IMockServiceInterfaceRequest
parameters
- the parameters.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
public Locale getLocale()
getLocale
in interface PortletRequest
getLocale
in interface ServletRequest
getLocale
in class org.springframework.mock.web.MockHttpServletRequest
public Enumeration<Locale> getLocales()
getLocales
in interface PortletRequest
getLocales
in interface ServletRequest
getLocales
in class org.springframework.mock.web.MockHttpServletRequest
public void setLocales(List<Locale> locales)
IMockServiceInterfaceRequest
setLocales
in interface IMockServiceInterfaceRequest
locales
- the locales.PortletRequest.getLocale()
,
PortletRequest.getLocales()
public PageWebResource getPageWebResource()
IServiceInterfaceRequest
PageWebResource
of this request.getPageWebResource
in interface IServiceInterfaceRequest
getPageWebResource
in interface IPageWebResourceRequest
PageWebResource
of this request.public IWebsiteBaseURL getWebsiteBaseURL()
IServiceInterfaceRequest
getWebsiteBaseURL
in interface IServiceInterfaceRequest
getWebsiteBaseURL
in interface IPageWebResourceRequest
public FunctionMapper getFunctionMapper()
IServiceInterfaceRequestSPI
FunctionMapper
for this request.getFunctionMapper
in interface IServiceInterfaceRequestSPI
FunctionMapper
for this request.public VariableResolver getVariableResolver()
IServiceInterfaceRequestSPI
VariableResolver
for this request.getVariableResolver
in interface IServiceInterfaceRequestSPI
VariableResolver
for this request.public ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()
IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.getServiceContainerHttpServletRequest
in interface IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.public IPortalMode getPortalMode()
IPageWebResourceRequest
getPortalMode
in interface IPageWebResourceRequest
public boolean isPageCachedInFile()
IPageWebResourceRequest
isPageCachedInFile
in interface IPageWebResourceRequest
public void setApplicationRequestedPath(String applicationRequestedPath)
applicationRequestedPath
- the application requested path.public String getApplicationRequestedPath()
IPageWebResourceRequest
website base URL
.getApplicationRequestedPath
in interface IPageWebResourceRequest
website base URL
.public boolean isWindowStateAllowed(WindowState state)
isWindowStateAllowed
in interface PortletRequest
public boolean isPortletModeAllowed(PortletMode mode)
isPortletModeAllowed
in interface PortletRequest
public PortletMode getPortletMode()
getPortletMode
in interface PortletRequest
public WindowState getWindowState()
getWindowState
in interface PortletRequest
public IPreferences getPreferences()
getPreferences
in interface PortletRequest
getPreferences
in interface IServiceInterfaceRequest
public PortletSession getPortletSession()
getPortletSession
in interface PortletRequest
public PortletSession getPortletSession(boolean create)
getPortletSession
in interface PortletRequest
public String getProperty(String name)
getProperty
in interface PortletRequest
public Enumeration<String> getProperties(String name)
getProperties
in interface PortletRequest
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface PortletRequest
public PortalContext getPortalContext()
getPortalContext
in interface PortletRequest
public String getResponseContentType()
getResponseContentType
in interface PortletRequest
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface PortletRequest
public void addProperty(String key, String value)
IMockServiceInterfaceRequest
If there are already one or more values registered for the given property key, the given value will be added to the end of the list.
addProperty
in interface IMockServiceInterfaceRequest
key
- the property key.value
- the property value.PortletRequest.getProperties(String)
,
PortletRequest.getProperty(String)
,
PortletRequest.getPropertyNames()
public void setPortletMode(PortletMode portletMode)
IMockServiceInterfaceRequest
setPortletMode
in interface IMockServiceInterfaceRequest
portletMode
- the portlet mode.PortletRequest.getPortletMode()
public void setProperty(String key, String value)
IMockServiceInterfaceRequest
If there are already one or more values registered for the given property key, they will be replaced.
setProperty
in interface IMockServiceInterfaceRequest
key
- the property key.value
- the property value.PortletRequest.getProperties(String)
,
PortletRequest.getProperty(String)
,
PortletRequest.getPropertyNames()
public void setWindowState(WindowState windowState)
IMockServiceInterfaceRequest
PortletRequest.getWindowState()
.setWindowState
in interface IMockServiceInterfaceRequest
windowState
- the window state.public ReplaceInterfacesStorage getReplaceInterfacesStorage()
IServiceInterfaceRequestSPI
ReplaceInterfacesStorage
for the current request.getReplaceInterfacesStorage
in interface IServiceInterfaceRequestSPI
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.