| java.lang.Object org.restlet.data.Parameter
All known Subclasses: org.restlet.data.Cookie,
Parameter | public class Parameter implements Comparable<Parameter>(Code) | | Multi-usage parameter.
author: Jerome Louvel (contact@noelios.com) |
Parameter | public Parameter()(Code) | | Default constructor.
|
Parameter | public Parameter(String name, String value)(Code) | | Preferred constructor.
Parameters: name - The name. Parameters: value - The value. |
compareTo | public int compareTo(Parameter o)(Code) | | Compares this object with the specified object for order.
Parameters: o - The object to be compared. A negative integer, zero, or a positive integer as this object isless than, equal to, or greater than the specified object. |
encode | public String encode(CharacterSet characterSet) throws IOException(Code) | | Encodes the parameter using the standard URI encoding mechanism.
Parameters: characterSet - The supported character encoding. The encoded string. throws: IOException - |
encode | public void encode(Appendable buffer, CharacterSet characterSet) throws IOException(Code) | | Encodes the parameter and appends the result to the given buffer. Uses
the standard URI encoding mechanism.
Parameters: buffer - The buffer to append. Parameters: characterSet - The supported character encoding throws: IOException - |
getName | public String getName()(Code) | | Returns the name of this parameter.
The name of this parameter. |
getValue | public String getValue()(Code) | | Returns the value.
The value. |
hashCode | public int hashCode()(Code) | |
|
setName | public void setName(String name)(Code) | | Sets the name.
Parameters: name - The name. |
setValue | public void setValue(String value)(Code) | | Sets the value.
Parameters: value - The value. |
toString | public String toString()(Code) | | Returns a string with the name and value of the parameter.
A string with the name and value of the parameter. |
|
|