T
- public abstract class JSONEncoder<T> extends Object implements Encoder<com.fasterxml.jackson.databind.JsonNode,T>
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
private Set<EncoderKey> |
encoderKeys |
Constructor and Description |
---|
JSONEncoder(Class<? super T> type,
EncoderKey... additionalKeys) |
Modifier and Type | Method and Description |
---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
com.fasterxml.jackson.databind.JsonNode |
encode(T objectToEncode)
Encodes the specified object.
|
com.fasterxml.jackson.databind.JsonNode |
encode(T objectToEncode,
Map<SosConstants.HelperValues,String> v)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
protected com.fasterxml.jackson.databind.JsonNode |
encodeCodeType(CodeType codeType) |
protected com.fasterxml.jackson.databind.JsonNode |
encodeCodeWithAuthority(CodeWithAuthority cwa) |
abstract com.fasterxml.jackson.databind.JsonNode |
encodeJSON(T t) |
protected com.fasterxml.jackson.databind.JsonNode |
encodeObjectToJson(Object o) |
Set<String> |
getConformanceClasses() |
MediaType |
getContentType() |
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
|
protected com.fasterxml.jackson.databind.node.JsonNodeFactory |
nodeFactory() |
public static final String CONTENT_TYPE
private final Set<EncoderKey> encoderKeys
public JSONEncoder(Class<? super T> type, EncoderKey... additionalKeys)
public Set<EncoderKey> getEncoderKeyType()
getEncoderKeyType
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
EncoderKey
)public Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Encoder
getSupportedTypes
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
public MediaType getContentType()
getContentType
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public com.fasterxml.jackson.databind.JsonNode encode(T objectToEncode, Map<SosConstants.HelperValues,String> v) throws OwsExceptionReport
Encoder
encode
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
objectToEncode
- the object to encodev
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderpublic com.fasterxml.jackson.databind.JsonNode encode(T objectToEncode) throws OwsExceptionReport
Encoder
encode
in interface Encoder<com.fasterxml.jackson.databind.JsonNode,T>
objectToEncode
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderpublic abstract com.fasterxml.jackson.databind.JsonNode encodeJSON(T t) throws OwsExceptionReport
OwsExceptionReport
protected com.fasterxml.jackson.databind.JsonNode encodeObjectToJson(Object o) throws OwsExceptionReport
OwsExceptionReport
protected com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory()
protected com.fasterxml.jackson.databind.JsonNode encodeCodeType(CodeType codeType)
protected com.fasterxml.jackson.databind.JsonNode encodeCodeWithAuthority(CodeWithAuthority cwa)
Copyright © 2012-2015 52north.org. All Rights Reserved.