public class HalSerializer extends AbstractSerializer implements Serializer
| Modifier and Type | Field and Description |
|---|---|
protected static Charset[] |
charsets |
supported| Constructor and Description |
|---|
HalSerializer()
Construct with default
StandardRepresentationFactory |
HalSerializer(com.theoryinpractise.halbuilder.api.RepresentationFactory representationFactory)
Construct with supplied
RepresentationFactory |
| Modifier and Type | Method and Description |
|---|---|
Body |
serialize(net.eusashead.parquet.entity.Entity target,
java.util.Set<AcceptableContentType> accept)
|
contentTypes, resolveContentType, supports, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentTypes, resolveContentType, supportsprotected static final Charset[] charsets
public HalSerializer()
StandardRepresentationFactorypublic HalSerializer(com.theoryinpractise.halbuilder.api.RepresentationFactory representationFactory)
RepresentationFactoryrepresentationFactory - RepresentationFactory to usepublic Body serialize(net.eusashead.parquet.entity.Entity target, java.util.Set<AcceptableContentType> accept) throws ResponseException
Serializerserialize in interface Serializertarget - Entity to serializeaccept - ContentType to serialize intoBody with the required ContentTypeResponseException