Class 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 customized MOXyJsonProvider, enhancing some aspects of it.
    Since:
    8.0.0
    Version:
    $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomMoxyJsonProvider

        public CustomMoxyJsonProvider()
    • 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 interface MessageBodyReader<java.lang.Object>
        Overrides:
        readFrom in class org.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 interface MessageBodyWriter<java.lang.Object>
        Overrides:
        writeTo in class org.eclipse.persistence.jaxb.rs.MOXyJsonProvider
        Throws:
        java.io.IOException
        WebApplicationException