Interface IMockServiceInterfaceRequest

    • Method Detail

      • setPageConfig

        void setPageConfig​(PageConfig pageConfig)
        Sets the new PageConfig instance to be available in IServiceInterfaceRequest.getPageConfig().
        Parameters:
        pageConfig - the instance of PageConfig that will be used on the tests.
        Since:
        5.6.0
      • addHeader

        void addHeader​(java.lang.String key,
                       java.lang.String value)
        Adds a new header value to be available in IServiceInterfaceRequest.getHeader(String).
        Parameters:
        key - string representing the key.
        value - the value.
        Since:
        5.6.0
      • setCookies

        void setCookies​(javax.servlet.http.Cookie... cookies)
        Sets a new value for cookies IServiceInterfaceRequest.getCookies().
        Parameters:
        cookies - the cookies to set.
        Since:
        5.6.0
      • setServiceInstanceDebugLevel

        void setServiceInstanceDebugLevel​(int serviceInstanceDebugLevel)
        Sets a new value for service instance debug level to be available in IServiceInterfaceRequest.getServiceInstanceDebugLevel().
        Parameters:
        serviceInstanceDebugLevel - the new level.
        Since:
        5.6.0
      • setCallerServiceInterfaceInstanceId

        void setCallerServiceInterfaceInstanceId​(java.lang.String callerServiceInterfaceInstanceId)
        Sets a new value for caller service interface instance id to be available in IServiceInterfaceRequest.getCallerServiceInterfaceInstanceId().
        Parameters:
        callerServiceInterfaceInstanceId - the new callerServiceInterfaceInstanceId.
        Since:
        5.6.0
      • addProperty

        void addProperty​(java.lang.String key,
                         java.lang.String value)
        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.

        Parameters:
        key - the property key.
        value - the property value.
        Since:
        5.6.0
        See Also:
        PortletRequest.getProperties(String), PortletRequest.getProperty(String), PortletRequest.getPropertyNames()
      • setAuthType

        void setAuthType​(java.lang.String authType)
        Sets the value returned by PortletRequest.getAuthType().
        Parameters:
        authType - the authType.
        Since:
        5.6.0
      • setContextPath

        void setContextPath​(java.lang.String contextPath)
        Sets the context path, returned by PortletRequest.getContextPath().
        Parameters:
        contextPath - the context path.
        Since:
        5.6.0
      • setLocales

        void setLocales​(java.util.List<java.util.Locale> locales)
        Sets the locales specified in this request, in order of preference.
        Parameters:
        locales - the locales.
        Since:
        5.6.0
        See Also:
        PortletRequest.getLocale(), PortletRequest.getLocales()
      • setPortletMode

        void setPortletMode​(javax.portlet.PortletMode portletMode)
        Sets the portlet mode for this request.
        Parameters:
        portletMode - the portlet mode.
        Since:
        5.6.0
        See Also:
        PortletRequest.getPortletMode()
      • setProperty

        void setProperty​(java.lang.String key,
                         java.lang.String value)
        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.

        Parameters:
        key - the property key.
        value - the property value.
        Since:
        5.6.0
        See Also:
        PortletRequest.getProperties(String), PortletRequest.getProperty(String), PortletRequest.getPropertyNames()
      • setRemoteUser

        void setRemoteUser​(java.lang.String remoteUser)
        Sets the remote user returned by PortletRequest.getRemoteUser().
        Parameters:
        remoteUser - the remote user.
        Since:
        5.6.0
      • setRequestedSessionIdValid

        void setRequestedSessionIdValid​(boolean requestedSessionIdValid)
        Sets the return value for PortletRequest.isRequestedSessionIdValid().
        Parameters:
        requestedSessionIdValid - the value.
        Since:
        5.6.0
      • setScheme

        void setScheme​(java.lang.String scheme)
        Sets the return value for PortletRequest.getScheme().
        Parameters:
        scheme - the value.
        Since:
        5.6.0
      • setSecure

        void setSecure​(boolean secure)
        Sets the return value for PortletRequest.isSecure().
        Parameters:
        secure - the value.
        Since:
        5.6.0
      • setServerName

        void setServerName​(java.lang.String serverName)
        Sets the server name returned by PortletRequest.getServerName().
        Parameters:
        serverName - the server name.
        Since:
        5.6.0
      • setServerPort

        void setServerPort​(int serverPort)
        Sets the server port returned by PortletRequest.getServerPort().
        Parameters:
        serverPort - the server port.
        Since:
        5.6.0
      • setWindowState

        void setWindowState​(javax.portlet.WindowState windowState)
        Sets the window state, returned by PortletRequest.getWindowState().
        Parameters:
        windowState - the window state.
        Since:
        5.6.0