public abstract class AbstractClientHttpRequest extends ObjectSE implements ClientHttpRequest
ClientHttpRequest
の抽象ベース。ヘッダーと本文が複数回書き込まれないようにします。コンストラクターと説明 |
---|
AbstractClientHttpRequest() |
修飾子と型 | メソッドと説明 |
---|---|
protected void | assertNotExecuted() このリクエストがまだ実行されていないことを表明します。 |
ClientHttpResponse | execute() このリクエストを実行すると、読み取り可能な ClientHttpResponse が生成されます。 |
protected abstract ClientHttpResponse | executeInternal(HttpHeaders headers) 指定されたヘッダーとコンテンツを HTTP リクエストに書き込む抽象テンプレートメソッド。 |
OutputStreamSE | getBody() メッセージの本文を出力ストリームとして返します。 |
protected abstract OutputStreamSE | getBodyInternal(HttpHeaders headers) 本文を返す抽象テンプレートメソッド。 |
HttpHeaders | getHeaders() このメッセージのヘッダーを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
getMethod, getMethodValue, getURI
public final HttpHeaders getHeaders()
HttpMessage
HttpMessage
の getHeaders
null
)public final OutputStreamSE getBody() throws IOExceptionSE
HttpOutputMessage
HttpOutputMessage
の getBody
null
)IOExceptionSE
- I/O エラーの場合 public final ClientHttpResponse execute() throws IOExceptionSE
ClientHttpRequest
ClientHttpResponse
が生成されます。ClientHttpRequest
の execute
IOExceptionSE
- I/O エラーの場合 protected void assertNotExecuted()
IllegalStateExceptionSE
- このリクエストが実行された場合 protected abstract OutputStreamSE getBodyInternal(HttpHeaders headers) throws IOExceptionSE
headers
- HTTP ヘッダー IOExceptionSE
protected abstract ClientHttpResponse executeInternal(HttpHeaders headers) throws IOExceptionSE
headers
- HTTP ヘッダー IOExceptionSE