|
com.Ostermiller.util Java Utilities |
|||||||
| 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(String name,
String value)
Construct a name value pair. |
|
| Method Summary | |
|---|---|
String |
getName()
Get the name of the pair. |
String |
getValue()
Get the value of the pair. |
String |
toString()
Get the name and value as CGI parameters, URL Encoded to UTF-8. |
String |
toString(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(String name,
String value)
name - name of the pair.value - value of the pair.| Method Detail |
|---|
public String getName()
public String getValue()
public String toString()
toString in class Object
public String toString(String charset)
throws UnsupportedEncodingException
charset - Character set to use when URL Encoding.
UnsupportedEncodingException - if the given character set is not supported
|
com.Ostermiller.util Java Utilities |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Copyright (c) 2001-2007 by Stephen Ostermiller