Package | Description |
---|---|
org.mockserver.client.serialization.java | |
org.mockserver.client.serialization.model | |
org.mockserver.model |
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) |
Modifier and Type | Method and Description |
---|---|
Header |
Headers.build(NottableString name,
List<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> |
HttpRequest.getHeaderList() |
List<Header> |
HttpResponse.getHeaderList() |
Modifier and Type | Method and Description |
---|---|
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
|
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
|
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 |
---|---|
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) |
Copyright © 2018. All rights reserved.