public static interface RequestEntity.BodyBuilder extends RequestEntity.HeadersBuilder<RequestEntity.BodyBuilder>
修飾子と型 | メソッドと説明 |
---|---|
<T> RequestEntity<T> | body(T body) リクエストエンティティの本体を設定し、RequestEntity を構築します。 |
<T> RequestEntity<T> | body(T body, TypeSE type) リクエストエンティティのボディと型を設定し、RequestEntity を構築します。 |
RequestEntity.BodyBuilder | contentLength(long contentLength) Content-Length ヘッダーで指定されているように、本文の長さをバイト単位で設定します。 |
RequestEntity.BodyBuilder | contentType(MediaType contentType) Content-Type ヘッダーで指定されているように、本文のメディア型を設定します。 |
accept, acceptCharset, build, header, headers, headers, ifModifiedSince, ifModifiedSince, ifModifiedSince, ifNoneMatch
RequestEntity.BodyBuilder contentLength(long contentLength)
Content-Length
ヘッダーで指定されているように、本文の長さをバイト単位で設定します。contentLength
- コンテンツの長さ HttpHeaders.setContentLength(long)
RequestEntity.BodyBuilder contentType(MediaType contentType)
Content-Type
ヘッダーで指定されているように、本文のメディア型を設定します。contentType
- コンテンツ型 HttpHeaders.setContentType(MediaType)
<T> RequestEntity<T> body(T body)
T
- 体の種類 body
- リクエストエンティティの本体 <T> RequestEntity<T> body(T body, TypeSE type)
T
- 体の種類 body
- リクエストエンティティの本体 type
- 汎用の型解決に役立つボディの型