@Singleton
public class ConfigurableMoxyJsonProvider
extends org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
MOXyJsonProvider
that can be configured via ContextResolver<JsonMoxyConfiguration>
instance.Constructor and Description |
---|
ConfigurableMoxyJsonProvider(Providers providers,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
protected void |
preReadFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
jakarta.xml.bind.Unmarshaller unmarshaller) |
protected void |
preWriteTo(Object object,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
jakarta.xml.bind.Marshaller marshaller) |
getAttributePrefix, getDomainClass, getDomainClasses, getJAXBContext, getNamespacePrefixMapper, getNamespaceSeparator, getSize, getValueWrapper, isFormattedOutput, isIncludeRoot, isMarshalEmptyCollections, isWrapperAsArrayName, readFrom, setAttributePrefix, setFormattedOutput, setIncludeRoot, setMarshalEmptyCollections, setNamespacePrefixMapper, setNamespaceSeparator, setValueWrapper, setWrapperAsArrayName, supportsMediaType, writeTo
@Inject public ConfigurableMoxyJsonProvider(@Context Providers providers, @Context Configuration config)
protected void preReadFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, jakarta.xml.bind.Unmarshaller unmarshaller) throws jakarta.xml.bind.JAXBException
preReadFrom
in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
jakarta.xml.bind.JAXBException
protected void preWriteTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, jakarta.xml.bind.Marshaller marshaller) throws jakarta.xml.bind.JAXBException
preWriteTo
in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
jakarta.xml.bind.JAXBException
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable
in interface MessageBodyReader<Object>
isReadable
in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<Object>
isWriteable
in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.