public interface HalHttpMessageConverterModule
HalHttpMessageConverter
by adding modules to handle
specific Java types| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> type)
Can this module
read the supplied type?
|
boolean |
canWrite(Class<?> type)
Can this module write the
supplied type?
|
Object |
read(com.theoryinpractise.halbuilder.api.ReadableRepresentation representation,
Class<?> type)
Convert a HAL
ReadableRepresentation
to an object |
com.theoryinpractise.halbuilder.api.ReadableRepresentation |
write(Object target,
com.theoryinpractise.halbuilder.api.RepresentationFactory factory)
Convert an object to
a
ReadableRepresentation
using the supplied
RepresentationFactory |
boolean canRead(Class<?> type)
type - boolean canWrite(Class<?> type)
type - com.theoryinpractise.halbuilder.api.ReadableRepresentation write(Object target, com.theoryinpractise.halbuilder.api.RepresentationFactory factory)
ReadableRepresentation
using the supplied
RepresentationFactorytarget - the Object to convertfactory - the RepresentationFactory to useReadableRepresentation of the converted objectCopyright © 2013. All Rights Reserved.