@Singleton
public class ConfigurableMoxyJsonProvider
extends org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
MOXyJsonProvider
that can be configured via ContextResolver<JsonMoxyConfiguration>
instance.Constructor and Description |
---|
ConfigurableMoxyJsonProvider(jakarta.ws.rs.ext.Providers providers,
jakarta.ws.rs.core.Configuration config) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
protected void |
preReadFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
jakarta.xml.bind.Unmarshaller unmarshaller) |
protected void |
preWriteTo(Object object,
Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.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 jakarta.ws.rs.ext.Providers providers, @Context jakarta.ws.rs.core.Configuration config)
protected void preReadFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.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, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.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, jakarta.ws.rs.core.MediaType mediaType)
isReadable
in interface jakarta.ws.rs.ext.MessageBodyReader<Object>
isReadable
in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
isWriteable
in interface jakarta.ws.rs.ext.MessageBodyWriter<Object>
isWriteable
in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.