| Package | Description |
|---|---|
| com.github.jasminb.jsonapi | |
| com.github.jasminb.jsonapi.retrofit |
| Modifier and Type | Method and Description |
|---|---|
static JSONAPIDocument<?> |
JSONAPIDocument.createErrorDocument(Iterable<? extends Error> errors)
Factory method for creating JSONAPIDocument that holds the Error object.
|
<T> JSONAPIDocument<T> |
ResourceConverter.readDocument(byte[] data,
Class<T> clazz)
Reads JSON API spec document and converts it into target type.
|
<T> JSONAPIDocument<T> |
ResourceConverter.readDocument(InputStream dataStream,
Class<T> clazz)
Reads JSON API spec document and converts it into target type.
|
<T> JSONAPIDocument<List<T>> |
ResourceConverter.readDocumentCollection(byte[] data,
Class<T> clazz)
Reads JSON API spec document and converts it into collection of target type objects.
|
<T> JSONAPIDocument<List<T>> |
ResourceConverter.readDocumentCollection(InputStream dataStream,
Class<T> clazz)
Reads JSON API spec document and converts it into collection of target type objects.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ResourceConverter.writeDocument(JSONAPIDocument<?> document)
Serializes provided
JSONAPIDocument into JSON API Spec compatible byte representation. |
byte[] |
ResourceConverter.writeDocument(JSONAPIDocument<?> document,
SerializationSettings settings)
Serializes provided
JSONAPIDocument into JSON API Spec compatible byte representation. |
byte[] |
ResourceConverter.writeDocumentCollection(JSONAPIDocument<? extends Iterable<?>> documentCollection)
Serializes provided
JSONAPIDocument into JSON API Spec compatible byte representation. |
byte[] |
ResourceConverter.writeDocumentCollection(JSONAPIDocument<? extends Iterable<?>> documentCollection,
SerializationSettings serializationSettings)
Serializes provided
JSONAPIDocument into JSON API Spec compatible byte representation. |
| Modifier and Type | Method and Description |
|---|---|
JSONAPIDocument<T> |
JSONAPIDocumentResponseBodyConverter.convert(okhttp3.ResponseBody responseBody) |
Copyright © 2017. All rights reserved.