Interface RequestHeadersBuilder
-
- All Known Implementing Classes:
RequestHeadersBuilder.Default
public interface RequestHeadersBuilder
The request headers builder.- Author:
- Christian Bremer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RequestHeadersBuilder.Default
The default request headers builder.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
build(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Build.static RequestHeadersBuilder
defaultBuilder()
Default request headers builder.default void
setAcceptHeader(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Sets accept header.default void
setContentTypeHeader(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Sets content type header.void
setHeaders(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Sets headers.
-
-
-
Method Detail
-
setHeaders
void setHeaders(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Sets headers.- Parameters:
parameters
- the parametersheaders
- the headers
-
build
default void build(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Build.- Parameters:
parameters
- the parametersheaders
- the headers
-
setAcceptHeader
default void setAcceptHeader(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Sets accept header.- Parameters:
parameters
- the parametersheaders
- the headers
-
setContentTypeHeader
default void setContentTypeHeader(InvocationParameters parameters, org.springframework.http.HttpHeaders headers)
Sets content type header.- Parameters:
parameters
- the parametersheaders
- the headers
-
defaultBuilder
static RequestHeadersBuilder defaultBuilder()
Default request headers builder.- Returns:
- the request headers builder
-
-