Package | Description |
---|---|
org.mockserver.model | |
org.mockserver.serialization.java | |
org.mockserver.serialization.model |
Modifier and Type | Method and Description |
---|---|
Header |
Headers.build(NottableString name,
Collection<NottableString> values) |
static Header |
Header.header(NottableString name,
Collection<NottableString> value) |
static Header |
Header.header(NottableString name,
NottableString... value) |
static Header |
Header.header(String name,
Collection<String> value) |
static Header |
Header.header(String name,
int value) |
static Header |
Header.header(String name,
String... value) |
Modifier and Type | Method and Description |
---|---|
List<Header> |
HttpObject.getHeaderList() |
List<Header> |
HttpRequest.getHeaderList() |
List<Header> |
HttpResponse.getHeaderList() |
Modifier and Type | Method and Description |
---|---|
T |
HttpObject.replaceHeader(Header header) |
HttpRequest |
HttpRequest.replaceHeader(Header header)
Adds one header to match on as a Header object where the header values list can be a list of strings or regular expressions
(for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
|
HttpResponse |
HttpResponse.replaceHeader(Header header)
Update header to return as a Header object, if a header with
the same name already exists it will be modified
|
T |
HttpObject.withHeader(Header header) |
HttpRequest |
HttpRequest.withHeader(Header header)
Adds one header to match on as a Header object where the header values list can be a list of strings or regular expressions
(for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
|
HttpResponse |
HttpResponse.withHeader(Header header)
Add a header to return as a Header object, if a header with
the same name already exists this will NOT be modified but
two headers will exist
|
T |
HttpObject.withHeaders(Header... headers) |
HttpRequest |
HttpRequest.withHeaders(Header... headers)
The headers to match on as a varags of Header objects where the values or keys of each header can be either a string or a regex
(for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
|
HttpResponse |
HttpResponse.withHeaders(Header... headers)
The headers to return as a varargs of Header objects
|
Modifier and Type | Method and Description |
---|---|
T |
HttpObject.withHeaders(List<Header> headers) |
HttpRequest |
HttpRequest.withHeaders(List<Header> headers)
The headers to match on as a list of Header objects where the values or keys of each header can be either a string or a regex
(for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html)
|
HttpResponse |
HttpResponse.withHeaders(List<Header> headers)
The headers to return as a list of Header objects
|
Constructor and Description |
---|
Headers(Header... headers) |
Constructor and Description |
---|
Headers(List<Header> headers) |
Modifier and Type | Method and Description |
---|---|
String |
HeaderToJavaSerializer.serialize(int numberOfSpacesToIndent,
Header header) |
String |
HeaderToJavaSerializer.serializeAsJava(int numberOfSpacesToIndent,
Header... object) |
Modifier and Type | Method and Description |
---|---|
String |
HeaderToJavaSerializer.serializeAsJava(int numberOfSpacesToIndent,
List<Header> headers) |
Modifier and Type | Method and Description |
---|---|
Header |
HeaderDTO.buildObject() |
Constructor and Description |
---|
HeaderDTO(Header header) |
Copyright © 2020. All rights reserved.