lumis.lptf.portal.serviceinterface
Class MockServiceInterfaceRenderRequest

Package class diagram package MockServiceInterfaceRenderRequest
java.lang.Object
  extended by lumis.lptf.portal.serviceinterface.MockServiceInterfaceRenderRequest
All Implemented Interfaces:
PortletRequest, RenderRequest, IMockServiceInterfaceRenderRequest, IMockServiceInterfaceRequest, IServiceInterfaceRenderRequest, IServiceInterfaceRequest

public class MockServiceInterfaceRenderRequest
extends Object
implements IMockServiceInterfaceRenderRequest

Implementation for IMockServiceInterfaceRenderRequest interface.

Since:
5.6.0

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()
           
 
Method Summary
 void addFileParameter(String name, FileParameter fileParameter)
          Adds a file parameter to be available in IServiceInterfaceRequest.getFileParameter(String).
 void addHeader(String key, String value)
          Adds a new header value to be available in IServiceInterfaceRequest.getHeader(String).
 void addProperty(String key, String value)
          Adds a single value for the specified property.
 Object getAttribute(String name)
           
 Enumeration<String> getAttributeNames()
          Returns an Enumeration containing the names of the attributes available to this request.
 String getAuthType()
           
 String getCallerServiceInterfaceInstanceId()
           
 String getContextPath()
           
 Cookie getCookie(String cookieName)
           
 Cookie[] getCookies()
           
 String getETag()
           
 FileParameter getFileParameter(String parameterName)
           
 String getHeader(String header)
           
 Locale getLocale()
           
 Enumeration<Locale> getLocales()
           
 int getMode()
           
 PageConfig getPageConfig()
           
 String getParameter(String name)
           
 Map<String,String[]> getParameterMap()
          Returns a Map of the parameters of this request.
 Enumeration<String> getParameterNames()
          Returns an Enumeration of String objects containing the names of the parameters contained in this request.
 String[] getParameterValues(String name)
           
 PortalContext getPortalContext()
           
 PortletMode getPortletMode()
           
 PortletSession getPortletSession()
           
 PortletSession getPortletSession(boolean create)
           
 PortletPreferences getPreferences()
           
 Map<String,String[]> getPrivateParameterMap()
           
 Enumeration<String> getProperties(String key)
           
 String getProperty(String key)
           
 Enumeration<String> getPropertyNames()
           
 Map<String,String[]> getPublicParameterMap()
           
 String getRemoteUser()
           
 IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
           
 String getRequestedSessionId()
           
 String getResponseContentType()
           
 Enumeration<String> getResponseContentTypes()
           
 boolean getSaveXml()
           
 String getScheme()
           
 String getServerName()
           
 int getServerPort()
           
 ServiceConfig getServiceConfig()
           
 ServiceInstanceConfig getServiceInstanceConfig()
           
 int getServiceInstanceDebugLevel()
           
 ServiceInterfaceConfig getServiceInterfaceConfig()
           
 ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
           
 String getServiceInterfaceInstanceId()
           
 SessionConfig getSessionConfig()
           
 Principal getUserPrincipal()
           
 String getWindowID()
           
 WindowState getWindowState()
           
 boolean isPageCachedInFile()
           
 boolean isPortletModeAllowed(PortletMode portletMode)
           
 boolean isPreview()
           
 boolean isPrinting()
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(String role)
           
 boolean isWindowStateAllowed(WindowState windowState)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setAuthType(String authType)
          Sets the value returned by PortletRequest.getAuthType().
 void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
          Sets a new value for caller service interface instance id to be available in IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId().
 void setContextPath(String contextPath)
          Sets the context path, returned by PortletRequest.getContextPath().
 void setCookies(Cookie... cookies)
          Sets a new value for cookies IServiceInterfaceRequest.getCookies().
 void setFileParameterMap(Map<String,FileParameter> fileParameterMap)
          Sets a map as the file parameters available in IServiceInterfaceRequest.getFileParameter(String).
 void setHeaderMap(Map<String,String> headerMap)
          Sets a new header map.
 void setLocales(List<Locale> locales)
          Sets the locales specified in this request, in order of preference.
 void setMode(int mode)
           
 void setPageCachedInFile(boolean pageCachedInFile)
          Sets the boolean value to be available in IServiceInterfaceRenderRequest.isPageCachedInFile() method.
 void setPageConfig(PageConfig pageConfig)
          Sets the new PageConfig instance to be available in IServiceInterfaceRequest.getPageConfig().
 void setParameter(String key, String value)
          Sets a parameter with a single value in this request.
 void setParameter(String key, String[] values)
          Sets a parameter with multiple values in this request.
 void setParameterMap(Map<String,String[]> parameters)
          Replaces all parameters in this request with the specified parameters.
 void setPortletMode(PortletMode portletMode)
          Sets the portlet mode for this request.
 void setPreview(boolean preview)
          Sets the value that will be used on IServiceInterfaceRequest.isPreview().
 void setPrinting(boolean printing)
          Sets the boolean value to be available in IServiceInterfaceRenderRequest.isPrinting() method.
 void setProperty(String key, String value)
          Sets a single value for the specified property.
 void setRemoteUser(String remoteUser)
          Sets the remote user returned by PortletRequest.getRemoteUser().
 void setRequestedSessionIdValid(boolean requestedSessionIdValid)
          Sets the return value for PortletRequest.isRequestedSessionIdValid().
 void setSaveXml(boolean saveXml)
          Sets the boolean value to be available in IServiceInterfaceRenderRequest.getSaveXml() method.
 void setScheme(String scheme)
          Sets the return value for PortletRequest.getScheme().
 void setSecure(boolean secure)
          Sets the return value for PortletRequest.isSecure().
 void setServerName(String serverName)
          Sets the server name returned by PortletRequest.getServerName().
 void setServerPort(int serverPort)
          Sets the server port returned by PortletRequest.getServerPort().
 void setServiceConfig(ServiceConfig serviceConfig)
          Sets the new ServiceConfig instance to be available in IServiceInterfaceRequest.getServiceConfig().
 void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
          Sets the value that will be used on IServiceInterfaceRequest.getServiceInstanceConfig().
 void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
          Sets a new value for service instance debug level to be available in IServiceInterfaceRequest.getServiceInstanceDebugLevel().
 void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
          Sets the new ServiceInterfaceConfig instance to be available in IServiceInterfaceRequest.getServiceInterfaceConfig().
 void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
          Sets the new ServiceInterfaceInstanceConfig instance to be available in IServiceInterfaceRequest.getServiceInterfaceInstanceConfig().
 void setSessionConfig(SessionConfig sessionConfig)
          Sets the new instance of SessionConfig to be available in IServiceInterfaceRequest.getSessionConfig().
 void setWindowState(WindowState windowState)
          Sets the window state, returned by PortletRequest.getWindowState().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockServiceInterfaceRenderRequest

public MockServiceInterfaceRenderRequest()
Method Detail

addFileParameter

public void addFileParameter(String name,
                             FileParameter fileParameter)
Description copied from interface: IMockServiceInterfaceRequest
Adds a file parameter to be available in IServiceInterfaceRequest.getFileParameter(String).

Specified by:
addFileParameter in interface IMockServiceInterfaceRequest
Parameters:
name - the name of the FileParameter.
fileParameter - the FileParameter instance.

addHeader

public void addHeader(String key,
                      String value)
Description copied from interface: IMockServiceInterfaceRequest
Adds a new header value to be available in IServiceInterfaceRequest.getHeader(String).

Specified by:
addHeader in interface IMockServiceInterfaceRequest
Parameters:
key - string representing the key.
value - the value.

addProperty

public void addProperty(String key,
                        String value)
Description copied from interface: IMockServiceInterfaceRequest
Adds a single value for the specified property.

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.

Specified by:
addProperty in interface IMockServiceInterfaceRequest
Parameters:
key - the property key.
value - the property value.
See Also:
PortletRequest.getProperties(String), PortletRequest.getProperty(String), PortletRequest.getPropertyNames()

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface PortletRequest

getAttributeNames

public Enumeration<String> getAttributeNames()
Description copied from interface: IServiceInterfaceRequest
Returns an 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.

Specified by:
getAttributeNames in interface PortletRequest
Specified by:
getAttributeNames in interface IServiceInterfaceRequest
Returns:
an Enumeration of strings containing the names of the request attributes, or an empty Enumeration if the request has no attributes available to it.

getAuthType

public String getAuthType()
Specified by:
getAuthType in interface PortletRequest

getCallerServiceInterfaceInstanceId

public String getCallerServiceInterfaceInstanceId()
Specified by:
getCallerServiceInterfaceInstanceId in interface IServiceInterfaceRequest

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface PortletRequest

getCookie

public Cookie getCookie(String cookieName)
Specified by:
getCookie in interface IServiceInterfaceRequest

getCookies

public Cookie[] getCookies()
Specified by:
getCookies in interface PortletRequest
Specified by:
getCookies in interface IServiceInterfaceRequest

getFileParameter

public FileParameter getFileParameter(String parameterName)
Specified by:
getFileParameter in interface IServiceInterfaceRequest

getHeader

public String getHeader(String header)
Specified by:
getHeader in interface IServiceInterfaceRequest

getLocale

public Locale getLocale()
Specified by:
getLocale in interface PortletRequest

getLocales

public Enumeration<Locale> getLocales()
Specified by:
getLocales in interface PortletRequest

getMode

public int getMode()
Specified by:
getMode in interface IServiceInterfaceRequest

getPageConfig

public PageConfig getPageConfig()
Specified by:
getPageConfig in interface IServiceInterfaceRequest
Returns:

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface PortletRequest

getParameterMap

public Map<String,String[]> getParameterMap()
Description copied from interface: IServiceInterfaceRequest
Returns a 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.

Specified by:
getParameterMap in interface PortletRequest
Specified by:
getParameterMap in interface IServiceInterfaceRequest
Returns:
an immutable 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[]).

getParameterNames

public Enumeration<String> getParameterNames()
Description copied from interface: IServiceInterfaceRequest
Returns an 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.

Specified by:
getParameterNames in interface PortletRequest
Specified by:
getParameterNames in interface IServiceInterfaceRequest
Returns:
an Enumeration of String objects, each String containing the name of a request parameter; or an empty Enumeration if the request has no parameters.

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface PortletRequest

getPortalContext

public PortalContext getPortalContext()
Specified by:
getPortalContext in interface PortletRequest

getPortletMode

public PortletMode getPortletMode()
Specified by:
getPortletMode in interface PortletRequest

getPortletSession

public PortletSession getPortletSession()
Specified by:
getPortletSession in interface PortletRequest

getPortletSession

public PortletSession getPortletSession(boolean create)
Specified by:
getPortletSession in interface PortletRequest

getPreferences

public PortletPreferences getPreferences()
Specified by:
getPreferences in interface PortletRequest

getPrivateParameterMap

public Map<String,String[]> getPrivateParameterMap()
Specified by:
getPrivateParameterMap in interface PortletRequest

getProperties

public Enumeration<String> getProperties(String key)
Specified by:
getProperties in interface PortletRequest

getProperty

public String getProperty(String key)
Specified by:
getProperty in interface PortletRequest

getPropertyNames

public Enumeration<String> getPropertyNames()
Specified by:
getPropertyNames in interface PortletRequest

getPublicParameterMap

public Map<String,String[]> getPublicParameterMap()
Specified by:
getPublicParameterMap in interface PortletRequest

getRemoteUser

public String getRemoteUser()
Specified by:
getRemoteUser in interface PortletRequest

getRequestDispatcher

public IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
Specified by:
getRequestDispatcher in interface IServiceInterfaceRequest

getRequestedSessionId

public String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface PortletRequest

getResponseContentType

public String getResponseContentType()
Specified by:
getResponseContentType in interface PortletRequest

getResponseContentTypes

public Enumeration<String> getResponseContentTypes()
Specified by:
getResponseContentTypes in interface PortletRequest

getScheme

public String getScheme()
Specified by:
getScheme in interface PortletRequest

getServerName

public String getServerName()
Specified by:
getServerName in interface PortletRequest

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface PortletRequest

getServiceConfig

public ServiceConfig getServiceConfig()
Specified by:
getServiceConfig in interface IServiceInterfaceRequest
Returns:

getServiceInstanceConfig

public ServiceInstanceConfig getServiceInstanceConfig()
Specified by:
getServiceInstanceConfig in interface IServiceInterfaceRequest
Returns:

getServiceInstanceDebugLevel

public int getServiceInstanceDebugLevel()
Specified by:
getServiceInstanceDebugLevel in interface IServiceInterfaceRequest

getServiceInterfaceConfig

public ServiceInterfaceConfig getServiceInterfaceConfig()
Specified by:
getServiceInterfaceConfig in interface IServiceInterfaceRequest
Returns:

getServiceInterfaceInstanceConfig

public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
Specified by:
getServiceInterfaceInstanceConfig in interface IServiceInterfaceRequest
Returns:
the source page

getServiceInterfaceInstanceId

public String getServiceInterfaceInstanceId()
Specified by:
getServiceInterfaceInstanceId in interface IServiceInterfaceRequest
Returns:
Returns the serviceInterfaceInstanceId.

getSessionConfig

public SessionConfig getSessionConfig()
Specified by:
getSessionConfig in interface IServiceInterfaceRequest
Returns:

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface PortletRequest

getWindowID

public String getWindowID()
Specified by:
getWindowID in interface PortletRequest

getWindowState

public WindowState getWindowState()
Specified by:
getWindowState in interface PortletRequest

isPortletModeAllowed

public boolean isPortletModeAllowed(PortletMode portletMode)
Specified by:
isPortletModeAllowed in interface PortletRequest

isPreview

public boolean isPreview()
Specified by:
isPreview in interface IServiceInterfaceRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface PortletRequest

isSecure

public boolean isSecure()
Specified by:
isSecure in interface PortletRequest

isUserInRole

public boolean isUserInRole(String role)
Specified by:
isUserInRole in interface PortletRequest

isWindowStateAllowed

public boolean isWindowStateAllowed(WindowState windowState)
Specified by:
isWindowStateAllowed in interface PortletRequest

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface PortletRequest

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface PortletRequest

setAuthType

public void setAuthType(String authType)
Description copied from interface: IMockServiceInterfaceRequest
Sets the value returned by PortletRequest.getAuthType().

Specified by:
setAuthType in interface IMockServiceInterfaceRequest
Parameters:
authType - the authType.

setCallerServiceInterfaceInstanceId

public void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
Description copied from interface: IMockServiceInterfaceRequest
Sets a new value for caller service interface instance id to be available in IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId().

Specified by:
setCallerServiceInterfaceInstanceId in interface IMockServiceInterfaceRequest
Parameters:
callerServiceInterfaceInstanceId - the new callerServiceInterfaceInstanceId.

setContextPath

public void setContextPath(String contextPath)
Description copied from interface: IMockServiceInterfaceRequest
Sets the context path, returned by PortletRequest.getContextPath().

Specified by:
setContextPath in interface IMockServiceInterfaceRequest
Parameters:
contextPath - the context path.

setCookies

public void setCookies(Cookie... cookies)
Description copied from interface: IMockServiceInterfaceRequest
Sets a new value for cookies IServiceInterfaceRequest.getCookies().

Specified by:
setCookies in interface IMockServiceInterfaceRequest
Parameters:
cookies - the cookies to set.

setFileParameterMap

public void setFileParameterMap(Map<String,FileParameter> fileParameterMap)
Description copied from interface: IMockServiceInterfaceRequest
Sets a map as the file parameters available in IServiceInterfaceRequest.getFileParameter(String).

Specified by:
setFileParameterMap in interface IMockServiceInterfaceRequest
Parameters:
fileParameterMap - an instance of Map.

setHeaderMap

public void setHeaderMap(Map<String,String> headerMap)
Description copied from interface: IMockServiceInterfaceRequest
Sets a new header map. In this way, all the values returned by IServiceInterfaceRequest.getHeader(String) will be replaced.

Specified by:
setHeaderMap in interface IMockServiceInterfaceRequest
Parameters:
headerMap - the instance of Map.
See Also:
IServiceInterfaceRequest.getHeader(String)

setLocales

public void setLocales(List<Locale> locales)
Description copied from interface: IMockServiceInterfaceRequest
Sets the locales specified in this request, in order of preference.

Specified by:
setLocales in interface IMockServiceInterfaceRequest
Parameters:
locales - the locales.
See Also:
PortletRequest.getLocale(), PortletRequest.getLocales()

setMode

public void setMode(int mode)
Specified by:
setMode in interface IServiceInterfaceRequest

setPageConfig

public void setPageConfig(PageConfig pageConfig)
Description copied from interface: IMockServiceInterfaceRequest
Sets the new PageConfig instance to be available in IServiceInterfaceRequest.getPageConfig().

Specified by:
setPageConfig in interface IMockServiceInterfaceRequest
Parameters:
pageConfig - the instance of PageConfig that will be used on the tests.

setParameter

public void setParameter(String key,
                         String value)
Description copied from interface: IMockServiceInterfaceRequest
Sets a parameter with a single value in this request.

Specified by:
setParameter in interface IMockServiceInterfaceRequest
Parameters:
key - the parameter name.
value - the parameter value.
See Also:
PortletRequest.getParameter(String), IServiceInterfaceRequest.getParameterMap(), IServiceInterfaceRequest.getParameterNames(), PortletRequest.getParameterValues(String)

setParameter

public void setParameter(String key,
                         String[] values)
Description copied from interface: IMockServiceInterfaceRequest
Sets a parameter with multiple values in this request.

Specified by:
setParameter in interface IMockServiceInterfaceRequest
Parameters:
key - the parameter name.
values - the parameter values.
See Also:
PortletRequest.getParameter(String), IServiceInterfaceRequest.getParameterMap(), IServiceInterfaceRequest.getParameterNames(), PortletRequest.getParameterValues(String)

setParameterMap

public void setParameterMap(Map<String,String[]> parameters)
Description copied from interface: IMockServiceInterfaceRequest
Replaces all parameters in this request with the specified parameters.

Specified by:
setParameterMap in interface IMockServiceInterfaceRequest
Parameters:
parameters - the parameters.
See Also:
PortletRequest.getParameter(String), IServiceInterfaceRequest.getParameterMap(), IServiceInterfaceRequest.getParameterNames(), PortletRequest.getParameterValues(String)

setPortletMode

public void setPortletMode(PortletMode portletMode)
Description copied from interface: IMockServiceInterfaceRequest
Sets the portlet mode for this request.

Specified by:
setPortletMode in interface IMockServiceInterfaceRequest
Parameters:
portletMode - the portlet mode.
See Also:
PortletRequest.getPortletMode()

setPreview

public void setPreview(boolean preview)
Description copied from interface: IMockServiceInterfaceRequest
Sets the value that will be used on IServiceInterfaceRequest.isPreview().

Specified by:
setPreview in interface IMockServiceInterfaceRequest
Parameters:
preview - the boolean value

setProperty

public void setProperty(String key,
                        String value)
Description copied from interface: IMockServiceInterfaceRequest
Sets a single value for the specified property.

If there are already one or more values registered for the given property key, they will be replaced.

Specified by:
setProperty in interface IMockServiceInterfaceRequest
Parameters:
key - the property key.
value - the property value.
See Also:
PortletRequest.getProperties(String), PortletRequest.getProperty(String), PortletRequest.getPropertyNames()

setRemoteUser

public void setRemoteUser(String remoteUser)
Description copied from interface: IMockServiceInterfaceRequest
Sets the remote user returned by PortletRequest.getRemoteUser().

Specified by:
setRemoteUser in interface IMockServiceInterfaceRequest
Parameters:
remoteUser - the remote user.

setRequestedSessionIdValid

public void setRequestedSessionIdValid(boolean requestedSessionIdValid)
Description copied from interface: IMockServiceInterfaceRequest
Sets the return value for PortletRequest.isRequestedSessionIdValid().

Specified by:
setRequestedSessionIdValid in interface IMockServiceInterfaceRequest
Parameters:
requestedSessionIdValid - the value.

setScheme

public void setScheme(String scheme)
Description copied from interface: IMockServiceInterfaceRequest
Sets the return value for PortletRequest.getScheme().

Specified by:
setScheme in interface IMockServiceInterfaceRequest
Parameters:
scheme - the value.

setSecure

public void setSecure(boolean secure)
Description copied from interface: IMockServiceInterfaceRequest
Sets the return value for PortletRequest.isSecure().

Specified by:
setSecure in interface IMockServiceInterfaceRequest
Parameters:
secure - the value.

setServerName

public void setServerName(String serverName)
Description copied from interface: IMockServiceInterfaceRequest
Sets the server name returned by PortletRequest.getServerName().

Specified by:
setServerName in interface IMockServiceInterfaceRequest
Parameters:
serverName - the server name.

setServerPort

public void setServerPort(int serverPort)
Description copied from interface: IMockServiceInterfaceRequest
Sets the server port returned by PortletRequest.getServerPort().

Specified by:
setServerPort in interface IMockServiceInterfaceRequest
Parameters:
serverPort - the server port.

setServiceConfig

public void setServiceConfig(ServiceConfig serviceConfig)
Description copied from interface: IMockServiceInterfaceRequest
Sets the new ServiceConfig instance to be available in IServiceInterfaceRequest.getServiceConfig().

Specified by:
setServiceConfig in interface IMockServiceInterfaceRequest
Parameters:
serviceConfig - the instance of ServiceConfig that will be used on the tests.

setServiceInstanceConfig

public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
Description copied from interface: IMockServiceInterfaceRequest
Sets the value that will be used on IServiceInterfaceRequest.getServiceInstanceConfig().

Specified by:
setServiceInstanceConfig in interface IMockServiceInterfaceRequest
Parameters:
serviceInstanceConfig - the instance of ServiceInstanceConfig that will be used on the tests.

setServiceInstanceDebugLevel

public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
Description copied from interface: IMockServiceInterfaceRequest
Sets a new value for service instance debug level to be available in IServiceInterfaceRequest.getServiceInstanceDebugLevel().

Specified by:
setServiceInstanceDebugLevel in interface IMockServiceInterfaceRequest
Parameters:
serviceInstanceDebugLevel - the new level.

setServiceInterfaceConfig

public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
Description copied from interface: IMockServiceInterfaceRequest
Sets the new ServiceInterfaceConfig instance to be available in IServiceInterfaceRequest.getServiceInterfaceConfig().

Specified by:
setServiceInterfaceConfig in interface IMockServiceInterfaceRequest

setServiceInterfaceInstanceConfig

public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Description copied from interface: IMockServiceInterfaceRequest
Sets the new ServiceInterfaceInstanceConfig instance to be available in IServiceInterfaceRequest.getServiceInterfaceInstanceConfig().

Specified by:
setServiceInterfaceInstanceConfig in interface IMockServiceInterfaceRequest

setSessionConfig

public void setSessionConfig(SessionConfig sessionConfig)
Description copied from interface: IMockServiceInterfaceRequest
Sets the new instance of SessionConfig to be available in IServiceInterfaceRequest.getSessionConfig().

Specified by:
setSessionConfig in interface IMockServiceInterfaceRequest
Specified by:
setSessionConfig in interface IServiceInterfaceRequest

setWindowState

public void setWindowState(WindowState windowState)
Description copied from interface: IMockServiceInterfaceRequest
Sets the window state, returned by PortletRequest.getWindowState().

Specified by:
setWindowState in interface IMockServiceInterfaceRequest
Parameters:
windowState - the window state.

getETag

public String getETag()
Specified by:
getETag in interface RenderRequest

getSaveXml

public boolean getSaveXml()
Specified by:
getSaveXml in interface IServiceInterfaceRenderRequest

setSaveXml

public void setSaveXml(boolean saveXml)
Description copied from interface: IMockServiceInterfaceRenderRequest
Sets the boolean value to be available in IServiceInterfaceRenderRequest.getSaveXml() method.

Specified by:
setSaveXml in interface IMockServiceInterfaceRenderRequest
Parameters:
saveXml - the boolean value that must be used during the tests.

isPageCachedInFile

public boolean isPageCachedInFile()
Specified by:
isPageCachedInFile in interface IServiceInterfaceRenderRequest

setPageCachedInFile

public void setPageCachedInFile(boolean pageCachedInFile)
Description copied from interface: IMockServiceInterfaceRenderRequest
Sets the boolean value to be available in IServiceInterfaceRenderRequest.isPageCachedInFile() method.

Specified by:
setPageCachedInFile in interface IMockServiceInterfaceRenderRequest
Parameters:
pageCachedInFile - the boolean value that must be used during the tests.

isPrinting

public boolean isPrinting()
Specified by:
isPrinting in interface IServiceInterfaceRenderRequest

setPrinting

public void setPrinting(boolean printing)
Description copied from interface: IMockServiceInterfaceRenderRequest
Sets the boolean value to be available in IServiceInterfaceRenderRequest.isPrinting() method.

Specified by:
setPrinting in interface IMockServiceInterfaceRenderRequest
Parameters:
printing - the boolean value that must be used during the tests.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.