|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.socket.server.http.response.HttpResponseWriterImpl
public class HttpResponseWriterImpl
HttpResponseWriter implementation.
TODO handle Accept and translating HTTP response for the client.
| Constructor Summary | |
|---|---|
HttpResponseWriterImpl(ServerHttpConnection connection)
Initiate. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpResponseWriterImpl(ServerHttpConnection connection)
connection - ServerHttpConnection.| Method Detail |
|---|
public void write(String contentEncoding,
String contentType,
Charset charset,
ByteBuffer contents)
throws IOException
HttpResponseWriterHttpResponse.
write in interface HttpResponseWritercontentEncoding - 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.
public void write(String contentType,
String contents)
throws IOException
HttpResponseWriter
Writes content to the HttpResponse.
As the content is String, there should be no
Content-Encoding on the contents to write.
write in interface HttpResponseWritercontentType - 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 | |||||||||