|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.lptf.portal.serviceinterface.MockServiceInterfaceRenderRequest
public class MockServiceInterfaceRenderRequest
Implementation for IMockServiceInterfaceRenderRequest interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest |
---|
PortletRequest.P3PUserInfos |
Field Summary |
---|
Fields inherited from interface lumis.portal.serviceinterface.IServiceInterfaceRequest |
---|
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE |
Fields inherited from interface javax.portlet.RenderRequest |
---|
ETAG |
Fields inherited from interface javax.portlet.PortletRequest |
---|
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 |
Constructor Summary | |
---|---|
MockServiceInterfaceRenderRequest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockServiceInterfaceRenderRequest()
Method Detail |
---|
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 addHeader(String key, String value)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getHeader(String)
.
addHeader
in interface IMockServiceInterfaceRequest
key
- string representing the key.value
- the value.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 Object getAttribute(String name)
getAttribute
in interface PortletRequest
public Enumeration<String> getAttributeNames()
IServiceInterfaceRequest
Enumeration
containing the names of the
attributes available to this request. This method returns an empty
Enumeration
if the request has no attributes available to
it.
getAttributeNames
in interface PortletRequest
getAttributeNames
in interface IServiceInterfaceRequest
Enumeration
of strings containing the names of
the request attributes, or an empty Enumeration
if
the request has no attributes available to it.public String getAuthType()
getAuthType
in interface PortletRequest
public String getCallerServiceInterfaceInstanceId()
getCallerServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public String getContextPath()
getContextPath
in interface PortletRequest
public Cookie getCookie(String cookieName)
getCookie
in interface IServiceInterfaceRequest
public Cookie[] getCookies()
getCookies
in interface PortletRequest
getCookies
in interface IServiceInterfaceRequest
public FileParameter getFileParameter(String parameterName)
getFileParameter
in interface IServiceInterfaceRequest
public String getHeader(String header)
getHeader
in interface IServiceInterfaceRequest
public Locale getLocale()
getLocale
in interface PortletRequest
public Enumeration<Locale> getLocales()
getLocales
in interface PortletRequest
public int getMode()
getMode
in interface IServiceInterfaceRequest
public PageConfig getPageConfig()
getPageConfig
in interface IServiceInterfaceRequest
public String getParameter(String name)
getParameter
in interface PortletRequest
public Map<String,String[]> getParameterMap()
IServiceInterfaceRequest
Map
of the parameters of this request. Request
parameters are extra information sent with the request. The returned
parameters are "x-www-form-urlencoded" decoded.
The values in the returned Map
are from type String array (
String[]
).
If no parameters exist this method returns an empty Map
.
getParameterMap
in interface PortletRequest
getParameterMap
in interface IServiceInterfaceRequest
Map
containing parameter names as
keys and parameter values as map values, or an empty
Map
if no parameters exist. The keys in the
parameter map are of type String. The values in the parameter map
are of type String array (String[]
).public Enumeration<String> getParameterNames()
IServiceInterfaceRequest
Enumeration
of String
objects
containing the names of the parameters contained in this request. If the
request has no parameters, the method returns an empty
Enumeration
.
Only parameters targeted to the current service interface are returned.
getParameterNames
in interface PortletRequest
getParameterNames
in interface IServiceInterfaceRequest
Enumeration
of String
objects,
each String
containing the name of a request
parameter; or an empty Enumeration
if the request
has no parameters.public String[] getParameterValues(String name)
getParameterValues
in interface PortletRequest
public PortalContext getPortalContext()
getPortalContext
in interface PortletRequest
public PortletMode getPortletMode()
getPortletMode
in interface PortletRequest
public PortletSession getPortletSession()
getPortletSession
in interface PortletRequest
public PortletSession getPortletSession(boolean create)
getPortletSession
in interface PortletRequest
public PortletPreferences getPreferences()
getPreferences
in interface PortletRequest
public Map<String,String[]> getPrivateParameterMap()
getPrivateParameterMap
in interface PortletRequest
public Enumeration<String> getProperties(String key)
getProperties
in interface PortletRequest
public String getProperty(String key)
getProperty
in interface PortletRequest
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface PortletRequest
public Map<String,String[]> getPublicParameterMap()
getPublicParameterMap
in interface PortletRequest
public String getRemoteUser()
getRemoteUser
in interface PortletRequest
public IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface IServiceInterfaceRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface PortletRequest
public String getResponseContentType()
getResponseContentType
in interface PortletRequest
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface PortletRequest
public String getScheme()
getScheme
in interface PortletRequest
public String getServerName()
getServerName
in interface PortletRequest
public int getServerPort()
getServerPort
in interface PortletRequest
public ServiceConfig getServiceConfig()
getServiceConfig
in interface IServiceInterfaceRequest
public ServiceInstanceConfig getServiceInstanceConfig()
getServiceInstanceConfig
in interface IServiceInterfaceRequest
public int getServiceInstanceDebugLevel()
getServiceInstanceDebugLevel
in interface IServiceInterfaceRequest
public ServiceInterfaceConfig getServiceInterfaceConfig()
getServiceInterfaceConfig
in interface IServiceInterfaceRequest
public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
getServiceInterfaceInstanceConfig
in interface IServiceInterfaceRequest
public String getServiceInterfaceInstanceId()
getServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public SessionConfig getSessionConfig()
getSessionConfig
in interface IServiceInterfaceRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface PortletRequest
public String getWindowID()
getWindowID
in interface PortletRequest
public WindowState getWindowState()
getWindowState
in interface PortletRequest
public boolean isPortletModeAllowed(PortletMode portletMode)
isPortletModeAllowed
in interface PortletRequest
public boolean isPreview()
isPreview
in interface IServiceInterfaceRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface PortletRequest
public boolean isSecure()
isSecure
in interface PortletRequest
public boolean isUserInRole(String role)
isUserInRole
in interface PortletRequest
public boolean isWindowStateAllowed(WindowState windowState)
isWindowStateAllowed
in interface PortletRequest
public void removeAttribute(String name)
removeAttribute
in interface PortletRequest
public void setAttribute(String name, Object value)
setAttribute
in interface PortletRequest
public void setAuthType(String authType)
IMockServiceInterfaceRequest
PortletRequest.getAuthType()
.
setAuthType
in interface IMockServiceInterfaceRequest
authType
- the authType.public void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId()
.
setCallerServiceInterfaceInstanceId
in interface IMockServiceInterfaceRequest
callerServiceInterfaceInstanceId
- the new callerServiceInterfaceInstanceId.public void setContextPath(String contextPath)
IMockServiceInterfaceRequest
PortletRequest.getContextPath()
.
setContextPath
in interface IMockServiceInterfaceRequest
contextPath
- the context path.public void setCookies(Cookie... cookies)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getCookies()
.
setCookies
in interface IMockServiceInterfaceRequest
cookies
- the cookies to set.public void setFileParameterMap(Map<String,FileParameter> fileParameterMap)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getFileParameter(String)
.
setFileParameterMap
in interface IMockServiceInterfaceRequest
fileParameterMap
- an instance of Mappublic 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 void setLocales(List<Locale> locales)
IMockServiceInterfaceRequest
setLocales
in interface IMockServiceInterfaceRequest
locales
- the locales.PortletRequest.getLocale()
,
PortletRequest.getLocales()
public void setMode(int mode)
setMode
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 void setParameter(String key, String value)
IMockServiceInterfaceRequest
setParameter
in interface IMockServiceInterfaceRequest
key
- the parameter name.value
- the parameter value.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
public void setParameter(String key, String[] values)
IMockServiceInterfaceRequest
setParameter
in interface IMockServiceInterfaceRequest
key
- the parameter name.values
- the parameter values.PortletRequest.getParameter(String)
,
IServiceInterfaceRequest.getParameterMap()
,
IServiceInterfaceRequest.getParameterNames()
,
PortletRequest.getParameterValues(String)
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 void setPortletMode(PortletMode portletMode)
IMockServiceInterfaceRequest
setPortletMode
in interface IMockServiceInterfaceRequest
portletMode
- the portlet mode.PortletRequest.getPortletMode()
public void setPreview(boolean preview)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.isPreview()
.
setPreview
in interface IMockServiceInterfaceRequest
preview
- the boolean valuepublic 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 setRemoteUser(String remoteUser)
IMockServiceInterfaceRequest
PortletRequest.getRemoteUser()
.
setRemoteUser
in interface IMockServiceInterfaceRequest
remoteUser
- the remote user.public void setRequestedSessionIdValid(boolean requestedSessionIdValid)
IMockServiceInterfaceRequest
PortletRequest.isRequestedSessionIdValid()
.
setRequestedSessionIdValid
in interface IMockServiceInterfaceRequest
requestedSessionIdValid
- the value.public void setScheme(String scheme)
IMockServiceInterfaceRequest
PortletRequest.getScheme()
.
setScheme
in interface IMockServiceInterfaceRequest
scheme
- the value.public void setSecure(boolean secure)
IMockServiceInterfaceRequest
PortletRequest.isSecure()
.
setSecure
in interface IMockServiceInterfaceRequest
secure
- the value.public void setServerName(String serverName)
IMockServiceInterfaceRequest
PortletRequest.getServerName()
.
setServerName
in interface IMockServiceInterfaceRequest
serverName
- the server name.public void setServerPort(int serverPort)
IMockServiceInterfaceRequest
PortletRequest.getServerPort()
.
setServerPort
in interface IMockServiceInterfaceRequest
serverPort
- the server port.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 void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInstanceConfig()
.
setServiceInstanceConfig
in interface IMockServiceInterfaceRequest
serviceInstanceConfig
- the instance of ServiceInstanceConfig that will be used on the tests.public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInstanceDebugLevel()
.
setServiceInstanceDebugLevel
in interface IMockServiceInterfaceRequest
serviceInstanceDebugLevel
- the new level.public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInterfaceConfig()
.
setServiceInterfaceConfig
in interface IMockServiceInterfaceRequest
public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getServiceInterfaceInstanceConfig()
.
setServiceInterfaceInstanceConfig
in interface IMockServiceInterfaceRequest
public void setSessionConfig(SessionConfig sessionConfig)
IMockServiceInterfaceRequest
IServiceInterfaceRequest.getSessionConfig()
.
setSessionConfig
in interface IMockServiceInterfaceRequest
setSessionConfig
in interface IServiceInterfaceRequest
public void setWindowState(WindowState windowState)
IMockServiceInterfaceRequest
PortletRequest.getWindowState()
.
setWindowState
in interface IMockServiceInterfaceRequest
windowState
- the window state.public String getETag()
getETag
in interface RenderRequest
public boolean getSaveXml()
getSaveXml
in interface IServiceInterfaceRenderRequest
public void setSaveXml(boolean saveXml)
IMockServiceInterfaceRenderRequest
IServiceInterfaceRenderRequest.getSaveXml()
method.
setSaveXml
in interface IMockServiceInterfaceRenderRequest
saveXml
- the boolean value that must be used during the tests.public boolean isPageCachedInFile()
isPageCachedInFile
in interface IServiceInterfaceRenderRequest
public void setPageCachedInFile(boolean pageCachedInFile)
IMockServiceInterfaceRenderRequest
IServiceInterfaceRenderRequest.isPageCachedInFile()
method.
setPageCachedInFile
in interface IMockServiceInterfaceRenderRequest
pageCachedInFile
- the boolean value that must be used during the tests.public boolean isPrinting()
isPrinting
in interface IServiceInterfaceRenderRequest
public void setPrinting(boolean printing)
IMockServiceInterfaceRenderRequest
IServiceInterfaceRenderRequest.isPrinting()
method.
setPrinting
in interface IMockServiceInterfaceRenderRequest
printing
- the boolean value that must be used during the tests.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |