Enhydra 5.1 API

com.lutris.appserver.server.httpPresentation
Class HttpUtil

java.lang.Object
  |
  +--com.lutris.appserver.server.httpPresentation.HttpUtil

public class HttpUtil
extends java.lang.Object

Class containing various static methods that are useful in implementing presentations.


Method Summary
static KeywordValueTable buildQueryTable(java.util.Hashtable query)
          Convert a HTTP query string object to a keyword/value table.
static KeywordValueTable buildQueryTable(java.lang.String queryString)
          Convert a HTTP query string to a keyword/value table.
static java.lang.String getQueryFromRequest(HttpPresentationRequest httpRequest)
          Get the query string for the request and save it in the page data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildQueryTable

public static KeywordValueTable buildQueryTable(java.util.Hashtable query)
                                         throws KeywordValueException
Convert a HTTP query string object to a keyword/value table.

Parameters:
query - Hash table containing the parsed key/value pairs.
Returns:
A keyword/value table with the parsed string.
KeywordValueException

buildQueryTable

public static KeywordValueTable buildQueryTable(java.lang.String queryString)
                                         throws KeywordValueException
Convert a HTTP query string to a keyword/value table.

Parameters:
queryString - Query string.
Returns:
A keyword/value table with the parsed string. FIX: better description of format.
KeywordValueException

getQueryFromRequest

public static java.lang.String getQueryFromRequest(HttpPresentationRequest httpRequest)
                                            throws HttpPresentationException
Get the query string for the request and save it in the page data. If this is a post, read the query string first.

Throws:
HttpPresentationException - If an error occurs accessing the request.

Enhydra 5.1 API