Package net.officefloor.server.http
Interface HttpResponseWriter<B>
-
- Type Parameters:
B
- Type of buffer.
- All Known Implementing Classes:
HttpServletHttpResponseWriter
,SamHttpResponseWriter
public interface HttpResponseWriter<B>
Writes theHttpResponse
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<B> contentHeadStreamBuffer)
Writes theHttpResponse
.
-
-
-
Method Detail
-
writeHttpResponse
void writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<B> contentHeadStreamBuffer)
Writes theHttpResponse
.- Parameters:
version
-HttpVersion
.status
-HttpStatus
.headHttpHeader
- HeadWritableHttpHeader
to the linked list ofWritableHttpHeader
instances for theHttpResponse
.headHttpCookie
- HeadWritableHttpCookie
to the linked list ofWritableHttpCookie
instances for theHttpResponse
.contentLength
- Number of bytes in the HTTP entity.contentType
-Content-Type
of the HTTP entity.contentHeadStreamBuffer
- HeadStreamBuffer
to the linked list ofStreamBuffer
instances containing theHttpResponse
entity. May benull
if no entity content.
-
-