|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpResponseWriter
Writes content to the HttpResponse.
| Method Summary | |
|---|---|
void |
write(String contentType,
String contents)
Writes content to the HttpResponse. |
void |
write(String contentEncoding,
String contentType,
Charset charset,
ByteBuffer contents)
Writes content to the HttpResponse. |
| Method Detail |
|---|
void write(String contentEncoding,
String contentType,
Charset charset,
ByteBuffer contents)
throws IOException
HttpResponse.
contentEncoding - Content-Encoding of the contents to write. May be
null if Content-Encoding is unknown.contentType - Content-Type of the contents to write. May be
null if Content-Type is unknown.charset - Charset of the contents to write. May be
null if the contents is not text or the
Charset is unknown.contents - Contents to write to the HttpResponse.
IOException - If fails to write contents to HttpResponse.
void write(String contentType,
String contents)
throws IOException
Writes content to the HttpResponse.
As the content is String, there should be no
Content-Encoding on the contents to write.
contentType - Content-Type of the contents to write. May be
null if Content-Type is unknown.contents - Contents to write to the HttpResponse.
IOException - If fails to write contents to HttpResponse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||