Package com.yahoo.container.jdisc
Class EmptyResponse
java.lang.Object
com.yahoo.container.jdisc.HttpResponse
com.yahoo.container.jdisc.EmptyResponse
Placeholder response when no content, only headers and status is to be returned.
- Author:
- Steinar Knutsen
-
Field Summary
Fields inherited from class com.yahoo.container.jdisc.HttpResponse
DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(OutputStream outputStream) Marshals this response to the network layer.Methods inherited from class com.yahoo.container.jdisc.HttpResponse
complete, getCharacterEncoding, getContentType, getJdiscResponse, getLogValues, getRequestType, getStatus, headers, maxPendingBytes, populateAccessLogEntry, setRequestType, setStatus
-
Constructor Details
-
EmptyResponse
public EmptyResponse(int status) -
EmptyResponse
public EmptyResponse()
-
-
Method Details
-
render
Description copied from class:HttpResponse
Marshals this response to the network layer. The caller is responsible for flushing and closing outputStream.- Specified by:
render
in classHttpResponse
- Throws:
IOException
-