Class ECpdsApplication.JacksonProvider

java.lang.Object
org.codehaus.jackson.jaxrs.JacksonJsonProvider
org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider
ecmwf.ecpds.master.plugin.service.ECpdsApplication.JacksonProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>, javax.ws.rs.ext.MessageBodyWriter<Object>, org.codehaus.jackson.Versioned
Enclosing class:
ECpdsApplication

@Provider public static final class ECpdsApplication.JacksonProvider extends org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider
The Class JacksonProvider. Allow catching the parsing errors and send an appropriate exception to the container.
  • Field Summary

    Fields inherited from class org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider

    DEFAULT_ANNOTATIONS

    Fields inherited from class org.codehaus.jackson.jaxrs.JacksonJsonProvider

    _cfgCheckCanDeserialize, _cfgCheckCanSerialize, _cfgCustomUntouchables, _jsonpFunctionName, _mapperConfig, _providers, _unreadableClasses, _untouchables, _unwritableClasses, BASIC_ANNOTATIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
    Read from.

    Methods inherited from class org.codehaus.jackson.jaxrs.JacksonJsonProvider

    _containedIn, _findView, addUntouchable, checkCanDeserialize, checkCanSerialize, configure, configure, configure, configure, disable, disable, disable, disable, enable, enable, enable, enable, findEncoding, getSize, isJsonType, isReadable, isWriteable, locateMapper, setAnnotationsToUse, setJSONPFunctionName, setMapper, version, writeTo

    Methods inherited from class java.lang.Object

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

    • JacksonProvider

      public JacksonProvider()
  • Method Details

    • readFrom

      public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
      Read from.
      Specified by:
      readFrom in interface javax.ws.rs.ext.MessageBodyReader<Object>
      Overrides:
      readFrom in class org.codehaus.jackson.jaxrs.JacksonJsonProvider
      Parameters:
      type - the type
      genericType - the generic type
      annotations - the annotations
      mediaType - the media type
      httpHeaders - the http headers
      entityStream - the entity stream
      Returns:
      the object
      Throws:
      IOException - Signals that an I/O exception has occurred.