public final class Expectation extends Object implements NamedValue<String>
| Constructor and Description |
|---|
Expectation(String name)
Constructor for directives with no value.
|
Expectation(String name,
String value)
Constructor for directives with a value.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public Expectation(String name)
name - The directive name.public static Expectation continueResponse()
public String getName()
getName in interface NamedValue<String>public List<Parameter> getParameters()
public String getValue()
getValue in interface NamedValue<String>public 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.Copyright © 2005–2025. All rights reserved.