Class WebScriptPortletRequest

    • Field Detail

      • ALFPORTLETUSERNAME

        public static final java.lang.String ALFPORTLETUSERNAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebScriptPortletRequest

        public WebScriptPortletRequest​(Runtime container,
                                       javax.portlet.PortletRequest req,
                                       java.lang.String scriptUrl,
                                       Match serviceMatch)
        Construct
        Parameters:
        container - Runtime
        req - PortletRequest
        scriptUrl - String
        serviceMatch - Match
      • WebScriptPortletRequest

        public WebScriptPortletRequest​(Runtime container,
                                       javax.portlet.PortletRequest req,
                                       java.lang.String[] scriptUrlParts,
                                       Match serviceMatch)
        Construct
        Parameters:
        container - Runtime
        req - PortletRequest
        scriptUrlParts - String[]
        serviceMatch - Match
    • Method Detail

      • getPortletRequest

        public javax.portlet.PortletRequest getPortletRequest()
        Gets the Portlet Request
        Returns:
        Portlet Request
      • getServerPath

        public java.lang.String getServerPath()
        Description copied from interface: WebScriptRequest
        Get server portion of the request e.g. scheme://host:port
        Returns:
        server path
      • getAgent

        public java.lang.String getAgent()
        Description copied from interface: WebScriptRequest
        Get User Agent TODO: Expand on known agents
        Returns:
        MSIE / Firefox
      • getHeaderNames

        public java.lang.String[] getHeaderNames()
        Description copied from interface: WebScriptRequest
        Gets the names of all headers for this request
        Returns:
        the names (empty, if none)
      • getHeader

        public java.lang.String getHeader​(java.lang.String name)
        Description copied from interface: WebScriptRequest
        Gets the value of the named header
        Parameters:
        name - header name
        Returns:
        header value (or null, if header does not exist)
      • getHeaderValues

        public java.lang.String[] getHeaderValues​(java.lang.String name)
        Description copied from interface: WebScriptRequest
        Gets the (array) value of the named header Note: An array of one item is returned when a "single value" named header is requested
        Parameters:
        name - header name
        Returns:
        array of values (or null, if header does not exist)
      • getContent

        public org.springframework.extensions.surf.util.Content getContent()
        Description copied from interface: WebScriptRequest
        Gets the request body as content
        Returns:
        request content (or null, if none)