Class ExpositionFormatWriterWithEscaping
Object
ExpositionFormatWriterWithEscaping
An exposition format writer paired with the escaping scheme selected from an Accept header.
Instances are immutable and delegate to the underlying format writer. The content type is the format's standard content type and does not include an escaping parameter.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the standard content type for the selected exposition format.Returns the escaping scheme selected from the Accept header.toDebugString(MetricSnapshots metricSnapshots) Converts the metric snapshots to a debug string using the negotiated escaping scheme.voidwrite(OutputStream out, MetricSnapshots metricSnapshots) Writes the given metric snapshots using the negotiated escaping scheme.
-
Method Details
-
write
Writes the given metric snapshots using the negotiated escaping scheme.- Throws:
IOException
-
toDebugString
Converts the metric snapshots to a debug string using the negotiated escaping scheme. -
getContentType
Returns the standard content type for the selected exposition format. -
getEscapingScheme
Returns the escaping scheme selected from the Accept header.
-