Class MockServiceInterfaceActionResponse

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected lumis.lptf.portal.serviceinterface.MockServiceInterfaceRequest mockServiceInterfaceRequest  
      • Fields inherited from interface javax.servlet.http.HttpServletResponse

        SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY
    • Field Detail

      • mockServiceInterfaceRequest

        protected final lumis.lptf.portal.serviceinterface.MockServiceInterfaceRequest mockServiceInterfaceRequest
    • Method Detail

      • getPortletMode

        public javax.portlet.PortletMode getPortletMode()
        Specified by:
        getPortletMode in interface javax.portlet.StateAwareResponse
      • getRenderParameterMap

        public java.util.Map<java.lang.String,​java.lang.String[]> getRenderParameterMap()
        Specified by:
        getRenderParameterMap in interface javax.portlet.StateAwareResponse
      • getWindowState

        public javax.portlet.WindowState getWindowState()
        Specified by:
        getWindowState in interface javax.portlet.StateAwareResponse
      • removePublicRenderParameter

        public void removePublicRenderParameter​(java.lang.String name)
        Specified by:
        removePublicRenderParameter in interface javax.portlet.StateAwareResponse
      • sendRedirect

        public void sendRedirect​(java.lang.String location,
                                 java.lang.String renderUrlParamName)
                          throws java.io.IOException
        Specified by:
        sendRedirect in interface javax.portlet.ActionResponse
        Throws:
        java.io.IOException
      • sendRedirect

        public void sendRedirect​(java.lang.String location)
                          throws java.io.IOException
        Specified by:
        sendRedirect in interface javax.portlet.ActionResponse
        Specified by:
        sendRedirect in interface javax.servlet.http.HttpServletResponse
        Overrides:
        sendRedirect in class org.springframework.mock.web.MockHttpServletResponse
        Throws:
        java.io.IOException
      • setEvent

        public void setEvent​(javax.xml.namespace.QName name,
                             java.io.Serializable value)
        Specified by:
        setEvent in interface javax.portlet.StateAwareResponse
      • setEvent

        public void setEvent​(java.lang.String name,
                             java.io.Serializable value)
        Specified by:
        setEvent in interface javax.portlet.StateAwareResponse
      • setPortletMode

        public void setPortletMode​(javax.portlet.PortletMode portletMode)
                            throws javax.portlet.PortletModeException
        Specified by:
        setPortletMode in interface javax.portlet.StateAwareResponse
        Throws:
        javax.portlet.PortletModeException
      • setRenderParameter

        public void setRenderParameter​(java.lang.String key,
                                       java.lang.String value)
        Specified by:
        setRenderParameter in interface javax.portlet.StateAwareResponse
      • setRenderParameter

        public void setRenderParameter​(java.lang.String key,
                                       java.lang.String[] values)
        Specified by:
        setRenderParameter in interface javax.portlet.StateAwareResponse
      • setRenderParameters

        public void setRenderParameters​(java.util.Map<java.lang.String,​java.lang.String[]> parameters)
        Specified by:
        setRenderParameters in interface javax.portlet.StateAwareResponse
      • setWindowState

        public void setWindowState​(javax.portlet.WindowState windowState)
                            throws javax.portlet.WindowStateException
        Specified by:
        setWindowState in interface javax.portlet.StateAwareResponse
        Throws:
        javax.portlet.WindowStateException
      • getRenderParameter

        @Deprecated
        public java.lang.String[] getRenderParameter​(java.lang.String key)
        Deprecated.
        Description copied from interface: IServiceInterfaceActionResponse
        Returns the parameter previously set by the setRenderParameter methods. This method is usually used by chained process actions that need to read previously set render parameters.
        Specified by:
        getRenderParameter in interface IServiceInterfaceActionResponse
        Returns:
      • getRenderParameters

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String[]> getRenderParameters()
        Deprecated.
        Description copied from interface: IServiceInterfaceActionResponse
        Returns all the parameters previously set by the setRenderParameter methods. This method is usually used by chained process actions that need to read previously set render parameters.
        Specified by:
        getRenderParameters in interface IServiceInterfaceActionResponse
        Returns:
      • setStatusInternal

        public void setStatusInternal​(int statusCode,
                                      java.lang.String message)
        Description copied from interface: IServiceInterfaceActionResponseSPI
        Sets the status code and message for this action response. This is a temporary implementation that is used exclusively for requests with accept: application/json header. This code and message will be returned in the http response headers in this case. The final support for setting response status will be available in the future.
        Specified by:
        setStatusInternal in interface IServiceInterfaceActionResponseSPI
        Parameters:
        statusCode - the status code for the response
        message - the message
      • addCookie

        public void addCookie​(javax.servlet.http.Cookie cookie)
        Specified by:
        addCookie in interface javax.servlet.http.HttpServletResponse
        Specified by:
        addCookie in interface IServiceInterfaceResponse
        Overrides:
        addCookie in class org.springframework.mock.web.MockHttpServletResponse
      • addProperty

        public void addProperty​(javax.servlet.http.Cookie arg0)
        Specified by:
        addProperty in interface javax.portlet.PortletResponse
      • addProperty

        public void addProperty​(java.lang.String arg0,
                                org.w3c.dom.Element arg1)
        Specified by:
        addProperty in interface javax.portlet.PortletResponse
      • createElement

        public org.w3c.dom.Element createElement​(java.lang.String arg0)
                                          throws org.w3c.dom.DOMException
        Specified by:
        createElement in interface javax.portlet.PortletResponse
        Throws:
        org.w3c.dom.DOMException
      • createServiceInterfaceURL

        protected IServiceInterfaceUrl createServiceInterfaceURL​(int urlType)
      • encodeURL

        public java.lang.String encodeURL​(java.lang.String url)
        Specified by:
        encodeURL in interface javax.servlet.http.HttpServletResponse
        Specified by:
        encodeURL in interface javax.portlet.PortletResponse
        Overrides:
        encodeURL in class org.springframework.mock.web.MockHttpServletResponse
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface javax.portlet.PortletResponse
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.String value)
        Specified by:
        setProperty in interface javax.portlet.PortletResponse
      • addProperty

        public void addProperty​(java.lang.String key,
                                java.lang.String value)
        Specified by:
        addProperty in interface javax.portlet.PortletResponse