public abstract class SmartExecutorExceptionMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Constructor and Description |
|---|
SmartExecutorExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static <EE extends ExecutorException> |
marshal(EE object)
Return the String serialization of a given resource
|
static <T extends OutputStream,EE extends ExecutorException> |
marshal(EE object,
T stream)
Write the serialization of a given resource to a given
OutputStream . |
static <T extends Writer,EE extends ExecutorException> |
marshal(EE object,
T writer)
Write the serialization of a given resource to a given
Writer . |
static <EE extends ExecutorException> |
unmarshal(Class<EE> clz,
InputStream stream)
Creates a resource of given class from its serialization in a given
InputStream. |
static <EE extends ExecutorException> |
unmarshal(Class<EE> clz,
Reader reader)
Creates a resource of given class from its serialization in a given
Reader. |
static <EE extends ExecutorException> |
unmarshal(Class<EE> clz,
String string)
Creates a resource of given class from its serialization in a given String
|
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public static <T extends OutputStream,EE extends ExecutorException> T marshal(EE object, T stream) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
OutputStream .object - the resourcestream - the stream in inputIOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic static <T extends Writer,EE extends ExecutorException> T marshal(EE object, T writer) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
Writer .object - the resourcewriter - the writer in inputIOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic static <EE extends ExecutorException> String marshal(EE object) throws com.fasterxml.jackson.core.JsonProcessingException
object - the resourcecom.fasterxml.jackson.core.JsonProcessingExceptionpublic static <EE extends ExecutorException> EE unmarshal(Class<EE> clz, Reader reader) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
Reader.clz - the class of the resourcereader - the readercom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic static <EE extends ExecutorException> EE unmarshal(Class<EE> clz, InputStream stream) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
InputStream.clz - the class of the resourcestream - the streamIOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic static <EE extends ExecutorException> EE unmarshal(Class<EE> clz, String string) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
clz - the class of the resourcestring - com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionCopyright © 2018. All Rights Reserved.