public class MockHttpOutputMessage extends ObjectSE implements HttpOutputMessage
HttpOutputMessage
のモック実装。コンストラクターと説明 |
---|
MockHttpOutputMessage() |
修飾子と型 | メソッドと説明 |
---|---|
OutputStreamSE | getBody() 本文の内容を返します。 |
byte[] | getBodyAsBytes() 本文の内容をバイト配列として返します。 |
StringSE | getBodyAsString() UTF-8 文字列として解釈された本文の内容を返します。 |
StringSE | getBodyAsString(CharsetSE charset) 本文の内容を文字列として返します。 |
HttpHeaders | getHeaders() ヘッダーを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public HttpHeaders getHeaders()
HttpMessage
の getHeaders
null
)public OutputStreamSE getBody() throws IOExceptionSE
HttpOutputMessage
の getBody
null
)IOExceptionSE
- I/O エラーの場合 public byte[] getBodyAsBytes()
public StringSE getBodyAsString()