|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.util.Couple<String,String>
org.restlet.data.Parameter
public class Parameter
Multi-usage parameter. Note that the name and value properties are thread safe, stored in volatile members.
| Constructor Summary | |
|---|---|
Parameter()
Default constructor. |
|
Parameter(String name,
String value)
Preferred constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Parameter o)
Compares this object with the specified object for order. |
static Parameter |
create(CharSequence name,
CharSequence value)
Creates a parameter. |
void |
encode(Appendable buffer,
CharacterSet characterSet)
Encodes the parameter and appends the result to the given buffer. |
String |
encode(CharacterSet characterSet)
Encodes the parameter using the standard URI encoding mechanism. |
String |
getName()
Returns the name of this parameter. |
String |
getValue()
Returns the value. |
void |
setName(String name)
Sets the name. |
void |
setValue(String value)
Sets the value. |
| Methods inherited from class org.restlet.util.Couple |
|---|
equals, getFirst, getSecond, hashCode, setFirst, setSecond, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Parameter()
public Parameter(String name,
String value)
name - The name.value - The value.| Method Detail |
|---|
public static Parameter create(CharSequence name,
CharSequence value)
name - The parameter name buffer.value - The parameter value buffer (can be null).
IOExceptionpublic int compareTo(Parameter o)
compareTo in interface Comparable<Parameter>o - The object to be compared.
public void encode(Appendable buffer,
CharacterSet characterSet)
throws IOException
buffer - The buffer to append.characterSet - The supported character encoding
IOException
public String encode(CharacterSet characterSet)
throws IOException
characterSet - The supported character encoding.
IOExceptionpublic String getName()
public String getValue()
public void setName(String name)
name - The name.public void setValue(String value)
value - The value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||