|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.gwt.data.Parameter
public class Parameter
Multi-usage parameter.
Constructor Summary | |
---|---|
Parameter()
Default constructor. |
|
Parameter(java.lang.String name,
java.lang.String value)
Preferred constructor. |
Method Summary | |
---|---|
int |
compareTo(Parameter o)
Compares this object with the specified object for order. |
java.lang.String |
encode(CharacterSet characterSet)
Encodes the parameter using the standard URI encoding mechanism. |
void |
encode(java.lang.StringBuilder buffer,
CharacterSet characterSet)
Encodes the parameter and appends the result to the given buffer. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of this parameter. |
java.lang.String |
getValue()
Returns the value. |
int |
hashCode()
|
void |
setName(java.lang.String name)
Sets the name. |
void |
setValue(java.lang.String value)
Sets the value. |
java.lang.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(java.lang.String name, java.lang.String value)
name
- The name.value
- The value.Method Detail |
---|
public int compareTo(Parameter o)
compareTo
in interface java.lang.Comparable<Parameter>
o
- The object to be compared.
public java.lang.String encode(CharacterSet characterSet) throws java.lang.Exception
characterSet
- The supported character encoding.
java.io.IOException
java.lang.Exception
public void encode(java.lang.StringBuilder buffer, CharacterSet characterSet) throws java.lang.Exception
buffer
- The buffer to append.characterSet
- The supported character encoding
java.io.IOException
java.lang.Exception
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getValue()
public int hashCode()
hashCode
in class java.lang.Object
public void setName(java.lang.String name)
name
- The name.public void setValue(java.lang.String value)
value
- The value.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |