public class ProxyContentsWriter extends Object implements Closeable
コンストラクタと説明 |
---|
ProxyContentsWriter(int contentLength)
コンストラクタ
|
ProxyContentsWriter(int contentLength,
byte[] content)
コンストラクタ
|
ProxyContentsWriter(int contentLength,
InputStream is)
コンストラクタ
|
ProxyContentsWriter(int contentLength,
String content)
コンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close() |
int |
getContentLength()
レスポンス置換処理設定に従って置換されたコンテンツの Content-Length の値を取得します。
|
void |
write(javax.servlet.http.HttpServletResponse response)
コンテンツの出力を行います。
|
public ProxyContentsWriter(int contentLength)
contentLength
- Content-Lengthpublic ProxyContentsWriter(int contentLength, byte[] content)
contentLength
- Content-Lengthcontent
- バイト配列のコンテンツpublic ProxyContentsWriter(int contentLength, InputStream is)
contentLength
- Content-Lengthis
- InputStreampublic ProxyContentsWriter(int contentLength, String content)
contentLength
- Content-Lengthcontent
- 文字列のコンテンツpublic void close() throws IOException
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
IOException
public int getContentLength()
public void write(javax.servlet.http.HttpServletResponse response) throws IOException
response
- HTTPレスポンスIOException
- 入出力エラーが発生した場合にスローされます。Copyright © 2012 NTT DATA INTRAMART CORPORATION