|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.Ostermiller.util.NameValuePair
public class NameValuePair
Represents a name value pair as would be used as a CGI parameter.
More information about this class is available from ostermiller.org.
Constructor Summary | |
---|---|
NameValuePair(java.lang.String name,
java.lang.String value)
Construct a name value pair. |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of the pair. |
java.lang.String |
getValue()
Get the value of the pair. |
java.lang.String |
toString()
Get the name and value as CGI parameters, URL Encoded to UTF-8. |
java.lang.String |
toString(java.lang.String charset)
Get the name and value as CGI parameters, URL Encoded to the given encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NameValuePair(java.lang.String name, java.lang.String value)
name
- name of the pair.value
- value of the pair.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String charset) throws java.io.UnsupportedEncodingException
charset
- Character set to use when URL Encoding.
java.io.UnsupportedEncodingException
- if the given character set is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |