B
- the builder subclasspublic static interface RequestEntity.HeadersBuilder<B extends RequestEntity.HeadersBuilder<B>>
Modifier and Type | Method and Description |
---|---|
B |
accept(MediaType... acceptableMediaTypes)
Set the list of acceptable media types, as
specified by the
Accept header. |
B |
acceptCharset(Charset... acceptableCharsets)
Set the list of acceptable charsets, as specified
by the
Accept-Charset header. |
RequestEntity<Void> |
build()
Builds the request entity with no body.
|
B |
header(String headerName,
String... headerValues)
Add the given, single header value under the given name.
|
B |
ifModifiedSince(Instant ifModifiedSince)
Set the value of the
If-Modified-Since header. |
B |
ifModifiedSince(long ifModifiedSince)
Set the value of the
If-Modified-Since header. |
B |
ifModifiedSince(ZonedDateTime ifModifiedSince)
Set the value of the
If-Modified-Since header. |
B |
ifNoneMatch(String... ifNoneMatches)
Set the values of the
If-None-Match header. |
B header(String headerName, String... headerValues)
headerName
- the header nameheaderValues
- the header value(s)HttpHeaders.add(String, String)
B accept(MediaType... acceptableMediaTypes)
Accept
header.acceptableMediaTypes
- the acceptable media typesB acceptCharset(Charset... acceptableCharsets)
Accept-Charset
header.acceptableCharsets
- the acceptable charsetsB ifModifiedSince(ZonedDateTime ifModifiedSince)
If-Modified-Since
header.ifModifiedSince
- the new value of the headerB ifModifiedSince(Instant ifModifiedSince)
If-Modified-Since
header.ifModifiedSince
- the new value of the headerB ifModifiedSince(long ifModifiedSince)
If-Modified-Since
header.
The date should be specified as the number of milliseconds since January 1, 1970 GMT.
ifModifiedSince
- the new value of the headerB ifNoneMatch(String... ifNoneMatches)
If-None-Match
header.ifNoneMatches
- the new value of the headerRequestEntity<Void> build()
RequestEntity.BodyBuilder.body(Object)