Package lumis.portal.rest
Class CustomMoxyJsonProvider
- java.lang.Object
-
- org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
-
- org.glassfish.jersey.moxy.json.internal.ConfigurableMoxyJsonProvider
-
- lumis.portal.rest.CustomMoxyJsonProvider
-
- All Implemented Interfaces:
MessageBodyReader<java.lang.Object>
,MessageBodyWriter<java.lang.Object>
@Provider @Consumes("application/json") public class CustomMoxyJsonProvider extends org.glassfish.jersey.moxy.json.internal.ConfigurableMoxyJsonProvider
A customizedMOXyJsonProvider
, enhancing some aspects of it.- Since:
- 8.0.0
- Version:
- $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
-
-
Constructor Summary
Constructors Constructor Description CustomMoxyJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
readFrom(java.lang.Class<java.lang.Object> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
void
writeTo(java.lang.Object object, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
-
Methods inherited from class org.glassfish.jersey.moxy.json.internal.ConfigurableMoxyJsonProvider
isReadable, isWriteable, preReadFrom, preWriteTo
-
Methods inherited from class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
getAttributePrefix, getDomainClass, getDomainClasses, getJAXBContext, getNamespacePrefixMapper, getNamespaceSeparator, getSize, getValueWrapper, isFormattedOutput, isIncludeRoot, isMarshalEmptyCollections, isWrapperAsArrayName, setAttributePrefix, setFormattedOutput, setIncludeRoot, setMarshalEmptyCollections, setNamespacePrefixMapper, setNamespaceSeparator, setValueWrapper, setWrapperAsArrayName, supportsMediaType
-
-
-
-
Method Detail
-
readFrom
public java.lang.Object readFrom(java.lang.Class<java.lang.Object> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, WebApplicationException
- Specified by:
readFrom
in interfaceMessageBodyReader<java.lang.Object>
- Overrides:
readFrom
in classorg.eclipse.persistence.jaxb.rs.MOXyJsonProvider
- Throws:
java.io.IOException
WebApplicationException
-
writeTo
public void writeTo(java.lang.Object object, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, WebApplicationException
- Specified by:
writeTo
in interfaceMessageBodyWriter<java.lang.Object>
- Overrides:
writeTo
in classorg.eclipse.persistence.jaxb.rs.MOXyJsonProvider
- Throws:
java.io.IOException
WebApplicationException
-
-