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 -
Method Summary
Modifier and TypeMethodDescriptionreadFrom
(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
-
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 IOExceptionRead from.- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<Object>
- Overrides:
readFrom
in classorg.codehaus.jackson.jaxrs.JacksonJsonProvider
- Parameters:
type
- the typegenericType
- the generic typeannotations
- the annotationsmediaType
- the media typehttpHeaders
- the http headersentityStream
- the entity stream- Returns:
- the object
- Throws:
IOException
- Signals that an I/O exception has occurred.
-