Class JsonResponse
java.lang.Object
com.yahoo.container.jdisc.HttpResponse
com.yahoo.container.handler.metrics.JsonResponse
- Direct Known Subclasses:
ErrorResponse
- Author:
- gjoranv
-
Field Summary
Fields inherited from class com.yahoo.container.jdisc.HttpResponse
DEFAULT_CHARACTER_ENCODING, DEFAULT_MIME_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe MIME type of the response contents or null.void
render
(OutputStream outputStream) Marshals this response to the network layer.Methods inherited from class com.yahoo.container.jdisc.HttpResponse
complete, getCharacterEncoding, getJdiscResponse, getLogValues, getRequestType, getStatus, headers, maxPendingBytes, populateAccessLogEntry, setRequestType, setStatus
-
Constructor Details
-
JsonResponse
-
-
Method Details
-
getContentType
Description copied from class:HttpResponse
The MIME type of the response contents or null. If null is returned, no content type header is added to the HTTP response.- Overrides:
getContentType
in classHttpResponse
- Returns:
- by default
HttpResponse.DEFAULT_MIME_TYPE
-
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
-