public interface Serializer
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ContentType> |
contentTypes()
Supported
ContentType
for this Serializer |
net.eusashead.parquet.util.Option<ContentType> |
resolveContentType(java.util.Set<AcceptableContentType> accept)
Resolve the
ContentType
for the response based on what the
Serializer can support and
what the client can accept. |
Body |
serialize(net.eusashead.parquet.entity.Entity target,
java.util.Set<AcceptableContentType> contentType)
|
boolean |
supports(ContentType contentType)
Does the
Serializer
support the supplied
ContentType |
java.util.List<ContentType> contentTypes()
ContentType
for this SerializerList of supported ContentTypeboolean supports(ContentType contentType)
Serializer
support the supplied
ContentTypecontentType - ContentType to checkContentType is supportedBody serialize(net.eusashead.parquet.entity.Entity target, java.util.Set<AcceptableContentType> contentType) throws ResponseException
target - Entity to serializecontentType - ContentType to serialize intoBody with the required ContentTypeResponseExceptionnet.eusashead.parquet.util.Option<ContentType> resolveContentType(java.util.Set<AcceptableContentType> accept)
ContentType
for the response based on what the
Serializer can support and
what the client can accept.Option possibly containing a resolved ContentType