EAF 7.6 Implementation

com.lutris.appserver.server.httpPresentation
Class HttpUtil

java.lang.Object
  extended by 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 com.lutris.util.KeywordValueTable buildQueryTable(java.util.Hashtable query)
          Convert a HTTP query string object to a keyword/value table.
static com.lutris.util.KeywordValueTable buildQueryTable(java.lang.String queryString)
          Convert a HTTP query string to a keyword/value table.
static java.lang.String getQueryFromRequest(com.lutris.appserver.server.httpPresentation.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 com.lutris.util.KeywordValueTable buildQueryTable(java.util.Hashtable query)
                                                         throws com.lutris.util.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.
Throws:
com.lutris.util.KeywordValueException

buildQueryTable

public static com.lutris.util.KeywordValueTable buildQueryTable(java.lang.String queryString)
                                                         throws com.lutris.util.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.
Throws:
com.lutris.util.KeywordValueException

getQueryFromRequest

public static java.lang.String getQueryFromRequest(com.lutris.appserver.server.httpPresentation.HttpPresentationRequest httpRequest)
                                            throws com.lutris.appserver.server.httpPresentation.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.

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

EAF 7.6 Implementation