Package net.officefloor.server.http
Interface HttpResponseWriter<B>
- Type Parameters:
B- Type of buffer.
- All Known Implementing Classes:
GoogleFunctionHttpResponseWriter,HttpServletHttpResponseWriter,SamHttpResponseWriter
public interface HttpResponseWriter<B>
Writes the
HttpResponse.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidInvoked to indicate serviced and should send external response.voidwriteHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<B> contentHeadStreamBuffer) Writes theHttpResponse.
-
Method Details
-
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- HeadWritableHttpHeaderto the linked list ofWritableHttpHeaderinstances for theHttpResponse.headHttpCookie- HeadWritableHttpCookieto the linked list ofWritableHttpCookieinstances for theHttpResponse.contentLength- Number of bytes in the HTTP entity.contentType-Content-Typeof the HTTP entity.contentHeadStreamBuffer- HeadStreamBufferto the linked list ofStreamBufferinstances containing theHttpResponseentity. May benullif no entity content.
-
writeHttpExternalResponse
default void writeHttpExternalResponse()Invoked to indicate serviced and should send external response.
-