|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.core.EmbeddedWrappers
public class EmbeddedWrappers
Interface to mark objects that are aware of the rel they'd like to be exposed under.
| Constructor Summary | |
|---|---|
EmbeddedWrappers(boolean preferCollections)
Creates a new EmbeddedWrappers. |
|
| Method Summary | |
|---|---|
EmbeddedWrapper |
wrap(Object source)
Creates a new EmbeddedWrapper that |
EmbeddedWrapper |
wrap(Object source,
String rel)
Creates a new EmbeddedWrapper with the given rel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedWrappers(boolean preferCollections)
EmbeddedWrappers.
preferCollections - whether wrappers for single elements should rather treat the value as collection.| Method Detail |
|---|
public EmbeddedWrapper wrap(Object source)
EmbeddedWrapper that
source -
public EmbeddedWrapper wrap(Object source,
String rel)
EmbeddedWrapper with the given rel.
source - can be null, will return null if so.rel - must not be null or empty.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||