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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe MIME type of the response contents or null.voidrender(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:HttpResponseThe MIME type of the response contents or null. If null is returned, no content type header is added to the HTTP response.- Overrides:
getContentTypein classHttpResponse- Returns:
- by default
HttpResponse.DEFAULT_MIME_TYPE
-
render
Description copied from class:HttpResponseMarshals this response to the network layer. The caller is responsible for flushing and closing outputStream.- Specified by:
renderin classHttpResponse- Throws:
IOException
-