Fixed comments

This commit is contained in:
Ziver Koc 2010-10-23 19:40:19 +00:00
parent b5f161f7f1
commit faad31ce05

View file

@ -106,7 +106,19 @@ public class HTTPHeaderParser {
* Parses a String with variables from a get or post
* that was sent from a client and puts the data into a HashMap
*
* @param header is the String containing all the attributes
* @param attributes is the String containing all the attributes
*/
public static HashMap<String, String> parseUrlAttributes( String attributes ){
HashMap<String, String> map = new HashMap<String, String>();
parseUrlAttributes(attributes, map);
return map;
}
/**
* Parses a String with variables from a get or post
* that was sent from a client and puts the data into a HashMap
*
* @param attributes is the String containing all the attributes
* @param map is the HashMap to put all the values into
*/
public static void parseUrlAttributes(String attributes, HashMap<String, String> map){
@ -177,21 +189,24 @@ public class HTTPHeaderParser {
return url;
}
/**
* Returns the URL attribute value of the given name,
* Returns the URL attribute value of the given name.
*
* returns null if there is no such attribute
*/
public String getURLAttribute(String name){
return url_attr.get( name );
}
/**
* Returns the HTTP attribute value of the given name,
* Returns the HTTP attribute value of the given name.
*
* returns null if there is no such attribute
*/
public String getHeader(String name){
return headers.get( name.toUpperCase() );
}
/**
* Returns the cookie value of the given name,
* Returns the cookie value of the given name.
*
* returns null if there is no such attribute
*/
public String getCookie(String name){