Package com.yahoo.restapi
Class ByteArrayResponse
- java.lang.Object
-
- com.yahoo.container.jdisc.HttpResponse
-
- com.yahoo.restapi.ByteArrayResponse
-
- Direct Known Subclasses:
StringResponse
public class ByteArrayResponse extends HttpResponse
- Author:
- freva
-
-
Field Summary
-
Fields inherited from class com.yahoo.container.jdisc.HttpResponse
DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE
-
-
Constructor Summary
Constructors Constructor Description ByteArrayResponse(byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(OutputStream stream)
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
-
-
-
-
Method Detail
-
render
public void render(OutputStream stream) throws IOException
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
-
-