|
||||||||||
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
org.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 other)
|
List<Parameter> |
getParameters()
Returns the list of parameters. |
void |
setParameters(List<Parameter> parameters)
Sets the list of parameters. |
Methods inherited from class org.restlet.data.Parameter |
---|
compareTo, create, encode, encode, getName, getValue, setName, setValue |
Methods inherited from class org.restlet.util.Couple |
---|
getFirst, getSecond, hashCode, setFirst, setSecond, 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 other)
equals
in class Couple<String,String>
public List<Parameter> getParameters()
public void setParameters(List<Parameter> parameters)
parameters
- The list of parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |