Interface MockserverHttpRequest.BaseBuilder<B extends MockserverHttpRequest.BaseBuilder<B>>
- Type Parameters:
B- the builder subclass
- All Known subinterfaces:
MockserverHttpRequest.BodyBuilder
- Enclosing class:
MockserverHttpRequest
public static interface MockserverHttpRequest.BaseBuilder<B extends MockserverHttpRequest.BaseBuilder<B>>
Request builder exposing properties not related to the body.
- since:
- 5.0
- Author:
- Rossen stoyanchev
-
Method summary
Modifier and TypeMethodDescriptionset the list of acceptable media types, as specified by theAcceptheader.acceptCharset(Charset... acceptableCharsets) set the list of acceptable charsets, as specified by theAccept-Charsetheader.acceptLanguageAsLocales(Locale... acceptableLocales) set the list of acceptable locales, as specified by theAccept-Languagesheader.build()Builds the request with no body.contextPath(string contextPath) set the contextPath to return.cookie(HttpCookie... cookie) Add one or more cookies.cookies(MultiValueMap<string, HttpCookie> cookies) Add the given cookies.Add the given, single header value under the given name.headers(HttpHeaders headers) Add the given header values.ifModifiedsince(long ifModifiedsince) set the value of theIf-Modified-sinceheader.ifNoneMatch(string... ifNoneMatches) set the values of theIf-None-Matchheader.ifUnmodifiedsince(long ifUnmodifiedsince) set the (new) value of theIf-Unmodified-sinceheader.localAddress(InetsocketAddress localAddress) set the local address to return.queryParam(string name, Object... values) Append the given query parameter to the existing query parameters.queryParams(MultiValueMap<string, string> params) Add the given query parameters and values.set the (new) value of the Range header.remoteAddress(InetsocketAddress remoteAddress) set the remote address to return.set ssL session information and certificates.
-
Method Details
-
contextPath
-
queryParam
Append the given query parameter to the existing query parameters. If no values are given, the resulting URI will contain the query parameter name only (i.e.?fooinstead of?foo=bar).The provided query name and values will be encoded.
- Parameters:
name- the query parameter namevalues- the query parameter values- Returns:
- this UriComponentsBuilder
-
queryParams
Add the given query parameters and values. The provided query name and corresponding values will be encoded.- Parameters:
params- the params- Returns:
- this UriComponentsBuilder
-
remoteAddress
set the remote address to return. -
localAddress
set the local address to return.- since:
- 5.2.3
-
sslInfo
-
cookie
Add one or more cookies. -
cookies
Add the given cookies.- Parameters:
cookies- the cookies.
-
header
-
headers
Add the given header values.- Parameters:
headers- the header values
-
accept
set the list of acceptable media types, as specified by theAcceptheader.- Parameters:
acceptableMediaTypes- the acceptable media types
-
acceptCharset
-
acceptLanguageAsLocales
-
ifModifiedsince
set the value of theIf-Modified-sinceheader.The date should be specified as the number of milliseconds since January 1, 1970 GMT.
- Parameters:
ifModifiedsince- the new value of the header
-
ifUnmodifiedsince
set the (new) value of theIf-Unmodified-sinceheader.The date should be specified as the number of milliseconds since January 1, 1970 GMT.
- Parameters:
ifUnmodifiedsince- the new value of the header- see Also:
-
ifNoneMatch
-
range
-
build
-