oss.net.pstream
Class QueryHash

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--oss.net.pstream.QueryHash
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class QueryHash
extends java.util.Hashtable

An extension of a Hashmap object with some extra functionality for handling URI queries in the form of ([URL][RESOURCE][Query::?key=value&key=value...])

See Also:
Serialized Form

Constructor Summary
QueryHash()
           
QueryHash(javax.servlet.http.HttpServletRequest Request, PortletStreamParameters Params)
          A more permenant contructor.
QueryHash(javax.servlet.http.HttpServletRequest Request, PortletStreamParameters Params, java.lang.String callingClass)
          Constructor which grabs the Request and parses out query parameters from it This function is depricated because it was only created for debuggin purposes.
QueryHash(java.lang.String QueryString)
          Simple constructor from a sring encoded query
QueryHash(java.lang.String QueryString, java.lang.String callingClass)
          A more simple contructor which builds a hashmap from a query string in the form of ?name=value&name=value.
 
Method Summary
 java.lang.String getEncodedQuery()
          Reincodes the query string based on the contents of the hashmap.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryHash

public QueryHash()

QueryHash

public QueryHash(javax.servlet.http.HttpServletRequest Request,
                 PortletStreamParameters Params,
                 java.lang.String callingClass)
Constructor which grabs the Request and parses out query parameters from it This function is depricated because it was only created for debuggin purposes.

Parameters:
Request - the HttpServletRequest
Params - PortletStreamParameters for handling specifications
callingClass - the name of the calling class.

QueryHash

public QueryHash(javax.servlet.http.HttpServletRequest Request,
                 PortletStreamParameters Params)
A more permenant contructor. This constructor pulls passable session parameters from the query in Request and populates the session with them, but only if they are marked for storage by the Params.


QueryHash

public QueryHash(java.lang.String QueryString,
                 java.lang.String callingClass)
A more simple contructor which builds a hashmap from a query string in the form of ?name=value&name=value. It has also been exteded for nameless query values due to the ignorance of Oracle developers. This function is depricated because it was only created for debugging purposes.


QueryHash

public QueryHash(java.lang.String QueryString)
Simple constructor from a sring encoded query

Parameters:
QueryString - The string encoded query.
Method Detail

getEncodedQuery

public java.lang.String getEncodedQuery()
Reincodes the query string based on the contents of the hashmap. This is done in the form of: ?[nonamevalue]&[nonamevalue]&...&name=value&name=value

Returns:
String encoded query portion of a URI.


Copyright © 2000 Dummy Corp. All Rights Reserved.