Package black.door.hate
Class HalRepresentation
- java.lang.Object
-
- black.door.hate.HalRepresentation
-
- All Implemented Interfaces:
Serializable
public class HalRepresentation extends Object implements Serializable
Created by nfischer on 12/8/2015.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HalRepresentation.HalRepresentationBuilder
static class
HalRepresentation.HalRepresentationSerializer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HalRepresentation.HalRepresentationBuilder
builder()
static HalRepresentation.HalRepresentationBuilder
paginated(String name, String self, Stream<? extends HalResource> stream, long pageNumber, long pageSize)
String
serialize()
String
toString()
static void
useMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
-
Method Detail
-
useMapper
public static void useMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
serialize
public String serialize() throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
paginated
public static HalRepresentation.HalRepresentationBuilder paginated(String name, String self, Stream<? extends HalResource> stream, long pageNumber, long pageSize) throws URISyntaxException
- Throws:
URISyntaxException
-
builder
public static HalRepresentation.HalRepresentationBuilder builder()
-
-