Package com.docusign.esign.client
Class JSON
- java.lang.Object
-
- com.docusign.esign.client.JSON
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
public class JSON extends Object implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
JSON Class.
-
-
Constructor Summary
Constructors Constructor Description JSON()JSON Class constructor doc.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMappergetContext(Class<?> type)com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()Returns the current object mapper used for JSON serialization/deserialization.voidsetDateFormat(DateFormat dateFormat)Set the date format for JSON (de)serialization with Date properties.JSONsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
-
Method Detail
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Returns the current object mapper used for JSON serialization/deserialization.Note: If you make changes to the object mapper, remember to set it back via
setObjectMapperin order to trigger HTTP client rebuilding.- Returns:
- Object mapper
-
setObjectMapper
public JSON setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
setDateFormat
public void setDateFormat(DateFormat dateFormat)
Set the date format for JSON (de)serialization with Date properties.- Parameters:
dateFormat- Date format
-
getContext
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
- Specified by:
getContextin interfacejakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
-