T - the resulting type, the "Target"S - the input type, the "Source"public interface Encoder<T,S> extends Component<EncoderKey>
| Modifier and Type | Method and Description |
|---|---|
T |
encode(S objectToEncode)
Encodes the specified object.
|
T |
encode(S objectToEncode,
EncodingContext additionalValues)
Encodes the specified object with the specified EncodingContext
.
|
MediaType |
getContentType() |
default Set<SupportedType> |
getSupportedTypes()
Get the
SupportedType |
T encode(S objectToEncode) throws EncodingException
objectToEncode - the object to encodeEncodingException - if an error occursT encode(S objectToEncode, EncodingContext additionalValues) throws EncodingException
objectToEncode - the object to encodeadditionalValues - the helper valuesEncodingException - if an error occursdefault Set<SupportedType> getSupportedTypes()
SupportedTypeMediaType getContentType()
Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.