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<Object>
,MessageBodyWriter<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 Object
readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
void
writeTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, 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 Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
- Specified by:
readFrom
in interfaceMessageBodyReader<Object>
- Overrides:
readFrom
in classorg.eclipse.persistence.jaxb.rs.MOXyJsonProvider
- Throws:
IOException
WebApplicationException
-
writeTo
public void writeTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
- Specified by:
writeTo
in interfaceMessageBodyWriter<Object>
- Overrides:
writeTo
in classorg.eclipse.persistence.jaxb.rs.MOXyJsonProvider
- Throws:
IOException
WebApplicationException
-
-