| java.lang.Object com.Ostermiller.util.NameValuePair
NameValuePair | public class NameValuePair (Code) | | Represents a name value pair as would be used as a CGI parameter.
More information about this class is available from ostermiller.org.
author: Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities since: ostermillerutils 1.03.00 |
Method Summary | |
public String | getName() Get the name of the pair. | public String | getValue() Get the value of the pair. | public String | toString() Get the name and value as CGI parameters, URL Encoded to UTF-8. | public String | toString(String charset) Get the name and value as CGI parameters, URL Encoded to the given encoding.
Parameters: charset - Character set to use when URL Encoding. |
NameValuePair | public NameValuePair(String name, String value)(Code) | | Construct a name value pair.
Parameters: name - name of the pair. Parameters: value - value of the pair. since: ostermillerutils 1.03.00 |
getName | public String getName()(Code) | | Get the name of the pair.
the name of the pair. since: ostermillerutils 1.03.00 |
getValue | public String getValue()(Code) | | Get the value of the pair.
the value of the pair. since: ostermillerutils 1.03.00 |
toString | public String toString()(Code) | | Get the name and value as CGI parameters, URL Encoded to UTF-8.
CGI appropriate representation of the pair. since: ostermillerutils 1.03.00 |
toString | public String toString(String charset) throws UnsupportedEncodingException(Code) | | Get the name and value as CGI parameters, URL Encoded to the given encoding.
Parameters: charset - Character set to use when URL Encoding. CGI appropriate representation of the pair. throws: UnsupportedEncodingException - if the given character set is not supported since: ostermillerutils 1.03.00 |
|
|