Top Description Constructors Methods
tools.jackson.jaxrs.cfg

public abstract Class ObjectWriterModifier

extends Object
Class Inheritance
Imports
javax.ws.rs.core.MultivaluedMap, tools.jackson.core.JacksonException, tools.jackson.databind.*

Handler that may be registered to apply per-call modifications to ObjectWriter before writing it out.

Note one major difference from 2.x: JsonGenerator is not passed any more as it must be constructed using ObjectWriter that is modified here.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract ObjectWriter
modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, Object>
HTTP headers being returned with response (mutable)
responseHeaders
,
Object valueToWrite, ObjectWriter w)

Method called to let modifier make any changes it wants to to objects used for writing response for specified endpoint.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ObjectWriterModifierback to summary
public ObjectWriterModifier()

Method Detail

modifyback to summary
public abstract ObjectWriter modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, Object> responseHeaders, Object valueToWrite, ObjectWriter w) throws JacksonException

Method called to let modifier make any changes it wants to to objects used for writing response for specified endpoint.

Parameters
responseHeaders:MultivaluedMap<String, Object>

HTTP headers being returned with response (mutable)