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
      • 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​(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​(String key,
                         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​(String authType)
        Sets the value returned by PortletRequest.getAuthType().
        Parameters:
        authType - the authType.
        Since:
        5.6.0
      • setContextPath

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

        void setLocales​(List<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​(String key,
                         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​(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​(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​(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