| Package | Description |
|---|---|
| net.eusashead.hateoas.hal.response | |
| net.eusashead.hateoas.hal.response.impl |
| Modifier and Type | Method and Description |
|---|---|
HalResponseBuilder |
HalResponseBuilder.convert(Object bean)
Set the underlying
Representation
by converting the supplied Object
into a Representation using the
default conversion mechanism. |
<T> HalResponseBuilder |
HalResponseBuilder.convert(T bean,
RepresentationWriter<T> writer)
Set the underlying
Representation
by converting the supplied Object
into a Representation using the
supplied RepresentationWriter
in favour of the default conversion mechanism. |
HalResponseBuilder |
HalResponseBuilder.etag()
Create ETag header based
on the best available
ETagStrategy |
HalResponseBuilder |
HalResponseBuilder.etag(Date date)
Create a weak ETag based
on the supplied date
|
HalResponseBuilder |
HalResponseBuilder.etag(net.eusashead.hateoas.header.ETagHeaderStrategy strategy)
Create ETag header based
on the supplied
ETagStrategy |
HalResponseBuilder |
HalResponseBuilder.etag(Integer version)
Create a strong ETag based
on the supplied version
number
|
HalResponseBuilder |
HalResponseBuilder.etag(Long version)
Create a strong ETag based
on the supplied version
number
|
HalResponseBuilder |
HalResponseBuilder.expireIn(long millis)
Set the the Expires and
Cache-Control headers
based on the supplied
number of milliseconds
|
HalResponseBuilder |
HalResponseBuilder.lastModified(Date date)
Set the Last-Modified header
based on the supplied date
|
HalResponseBuilder |
HalResponseBuilder.representation(com.theoryinpractise.halbuilder.api.Representation representation)
Set the HAL
Representation
that this response represents |
HalResponseBuilder |
HalResponseBuilder.withBean(Object value)
Copy the fields from the supplied
Java Bean as properties of the
wrapped
Representation (entity) |
HalResponseBuilder |
HalResponseBuilder.withBeanBasedRepresentation(String rel,
String href,
Object o)
Add the supplied bean as
an embedded
Representation
within the wrapped Representation
with the specified rel and href. |
HalResponseBuilder |
HalResponseBuilder.withLink(String rel,
String href)
Add a link to the
wrapped
Representation |
HalResponseBuilder |
HalResponseBuilder.withNamespace(String namespace,
String href)
Add a namespace to the
wrapped
Representation |
HalResponseBuilder |
HalResponseBuilder.withProperty(String name,
Object value)
Add the supplied property
to the wrapped
Representation |
HalResponseBuilder |
HalResponseBuilder.withRepresentation(String rel,
com.theoryinpractise.halbuilder.api.ReadableRepresentation resource)
Add the supplied
Representation
to the wrapped Representation
as an embedded resource. |
| Modifier and Type | Class and Description |
|---|---|
class |
HalResponseBuilderImpl
ResponseBuilder that enables
a HAL Representation to be
constructed for the response. |
Copyright © 2013. All Rights Reserved.