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 * Parses a String with variables from a get or post
* that was sent from a client and puts the data into a HashMap * 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 * @param map is the HashMap to put all the values into
*/ */
public static void parseUrlAttributes(String attributes, HashMap<String, String> map){ public static void parseUrlAttributes(String attributes, HashMap<String, String> map){
@ -177,21 +189,24 @@ public class HTTPHeaderParser {
return url; 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 * returns null if there is no such attribute
*/ */
public String getURLAttribute(String name){ public String getURLAttribute(String name){
return url_attr.get( 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 * returns null if there is no such attribute
*/ */
public String getHeader(String name){ public String getHeader(String name){
return headers.get( name.toUpperCase() ); 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 * returns null if there is no such attribute
*/ */
public String getCookie(String name){ public String getCookie(String name){