Package com.yahoo.container.jdisc
Class EmptyResponse
- java.lang.Object
-
- com.yahoo.container.jdisc.HttpResponse
-
- com.yahoo.container.jdisc.EmptyResponse
-
public class EmptyResponse extends HttpResponse
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
Constructors Constructor Description EmptyResponse(int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(java.io.OutputStream outputStream)
Marshal this response to the network layer.-
Methods inherited from class com.yahoo.container.jdisc.HttpResponse
complete, getCharacterEncoding, getContentType, getJdiscResponse, getLogValues, getStatus, headers, populateAccessLogEntry, setStatus
-
-
-
-
Method Detail
-
render
public void render(java.io.OutputStream outputStream) throws java.io.IOException
Description copied from class:HttpResponse
Marshal this response to the network layer. The caller is responsible for flushing and closing outputStream.- Specified by:
render
in classHttpResponse
- Throws:
java.io.IOException
-
-