org.qtunes.core.util
Class HttpParameters
java.lang.Object
org.qtunes.core.util.HttpParameters
public class HttpParameters
- extends java.lang.Object
Utilty class to parse the parameters in GET url, this adds functionality
surprisingly absent from com.sun.httpserver package.
Constructor Summary |
HttpParameters(java.lang.String rawquery,
java.lang.String encoding)
|
HttpParameters(java.net.URI uri,
java.lang.String encoding)
|
Method Summary |
boolean |
containsKey(java.lang.String key)
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllValues()
|
java.lang.String |
getValue(java.lang.String key)
|
java.util.List<java.lang.String> |
getValues(java.lang.String key)
|
void |
remove(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpParameters
public HttpParameters(java.net.URI uri,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
HttpParameters
public HttpParameters(java.lang.String rawquery,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
getValue
public java.lang.String getValue(java.lang.String key)
getValues
public java.util.List<java.lang.String> getValues(java.lang.String key)
getAllValues
public java.util.Map<java.lang.String,java.lang.Object> getAllValues()
remove
public void remove(java.lang.String key)
containsKey
public boolean containsKey(java.lang.String key)