public final class Expectation extends java.lang.Object implements NamedValue<java.lang.String>
Constructor and Description |
---|
Expectation(java.lang.String name)
Constructor for directives with no value.
|
Expectation(java.lang.String name,
java.lang.String value)
Constructor for directives with a value.
|
Modifier and Type | Method and Description |
---|---|
static Expectation |
continueResponse()
Creates a "100-continue" expectation.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name.
|
java.util.List<Parameter> |
getParameters()
Returns the list of parameters.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setName(java.lang.String name)
Sets the name.
|
void |
setParameters(java.util.List<Parameter> parameters)
Sets the list of parameters.
|
void |
setValue(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
public Expectation(java.lang.String name)
name
- The directive name.public Expectation(java.lang.String name, java.lang.String value)
name
- The directive name.value
- The directive value.public static Expectation continueResponse()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
getName
in interface NamedValue<java.lang.String>
public java.util.List<Parameter> getParameters()
public java.lang.String getValue()
getValue
in interface NamedValue<java.lang.String>
public int hashCode()
hashCode
in class java.lang.Object
public void setName(java.lang.String name)
name
- The name.public void setParameters(java.util.List<Parameter> parameters)
parameters
- The list of parameters.public void setValue(java.lang.String value)
setValue
in interface NamedValue<java.lang.String>
value
- The value.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.