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(java.nio.charset.Charset... acceptableCharsets)
Set the list of acceptable charsets, as specified
by the
Accept-Charset header. |
RequestEntity<java.lang.Void> |
build()
Builds the request entity with no body.
|
B |
header(java.lang.String headerName,
java.lang.String... headerValues)
Add the given, single header value under the given name.
|
B |
ifModifiedSince(long ifModifiedSince)
Set the value of the
If-Modified-Since header. |
B |
ifNoneMatch(java.lang.String... ifNoneMatches)
Set the values of the
If-None-Match header. |
B header(java.lang.String headerName, java.lang.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(java.nio.charset.Charset... acceptableCharsets)
Accept-Charset
header.acceptableCharsets
- the acceptable charsetsB 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(java.lang.String... ifNoneMatches)
If-None-Match
header.ifNoneMatches
- the new value of the headerRequestEntity<java.lang.Void> build()
RequestEntity.BodyBuilder.body(Object)