Class SavedRequestManager.SavedRequest

    • Constructor Detail

      • SavedRequest

        public SavedRequest​(javax.servlet.http.HttpServletRequest request)
        Constructor that copies the needed information from a request.
        Parameters:
        request - the request that needs to be saved
    • Method Detail

      • getParameter

        public String getParameter​(String name)
        Gets the value for a parameter, just like ServletRequest.getParameter(String).
        Parameters:
        name - the name of the parameter
        Returns:
        The first value for this parameter, or null if no value was sent for this parameter.
        See Also:
        ServletRequest.getParameter(String), getParameterValues(String)
      • getParameterValues

        public String[] getParameterValues​(String name)
        Gets all the values stored for a parameter, just like ServletRequest.getParameterValues(String).
        Parameters:
        name - the name of the parameter
        Returns:
        All the values for this parameter, or null if no value was sent for this parameter.
        See Also:
        ServletRequest.getParameterValues(String), getParameter(String)
      • getParameterMap

        public Map<String,​String[]> getParameterMap()
        Gets all the stored parameters, just like ServletRequest.getParameterMap().
        Returns:
        A map with all the stored parameters.
        See Also:
        ServletRequest.getParameterMap()
      • getRequestUrl

        public String getRequestUrl()
        Retrieves the original URL used for this request, as a future request will be able to reuse this data only if it is for the same document. Does not contain the query string.
        Returns:
        A String representation of the URL corresponding to this request.