|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.data.Expectation
public final class Expectation
Particular server behavior that is required by a client. Note that when used with HTTP connectors, this class maps to the "Expect" header.
| Constructor Summary | |
|---|---|
Expectation(String name)
Constructor for directives with no value. |
|
Expectation(String name,
String value)
Constructor for directives with a value. |
|
| Method Summary | |
|---|---|
static Expectation |
continueResponse()
Creates a "100-continue" expectation. |
boolean |
equals(Object obj)
|
String |
getName()
Returns the name. |
List<Parameter> |
getParameters()
Returns the list of parameters. |
String |
getValue()
Returns the value. |
int |
hashCode()
|
void |
setName(String name)
Sets the name. |
void |
setParameters(List<Parameter> parameters)
Sets the list of parameters. |
void |
setValue(String value)
Sets the value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Expectation(String name)
name - The directive name.
public Expectation(String name,
String value)
name - The directive name.value - The directive value.| Method Detail |
|---|
public static Expectation continueResponse()
public boolean equals(Object obj)
equals in class Objectpublic String getName()
getName in interface NamedValue<String>public List<Parameter> getParameters()
public String getValue()
getValue in interface NamedValue<String>public int hashCode()
hashCode in class Objectpublic void setName(String name)
name - The name.public void setParameters(List<Parameter> parameters)
parameters - The list of parameters.public void setValue(String value)
setValue in interface NamedValue<String>value - The value.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||