|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Parameter
public class Parameter
Multi-usage parameter.
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. |
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. |
boolean |
equals(Object obj)
|
String |
getName()
Returns the name of this parameter. |
String |
getValue()
Returns the value. |
int |
hashCode()
|
void |
setName(String name)
Sets the name. |
void |
setValue(String value)
Sets the value. |
String |
toString()
Returns a string with the name and value of the parameter. |
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 int compareTo(Parameter o)
compareTo
in interface Comparable<Parameter>
o
- The object to be compared.
public boolean equals(Object obj)
equals
in class Object
public String getName()
public String getValue()
public int hashCode()
hashCode
in class Object
public void setName(String name)
name
- The name.public void setValue(String value)
value
- The value.public String toString()
toString
in class Object
public String encode(CharacterSet characterSet) throws IOException
characterSet
- The supported character encoding.
IOException
public void encode(Appendable buffer, CharacterSet characterSet) throws IOException
buffer
- The buffer to append.characterSet
- The supported character encoding
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |