public class ListUnmarshaller<T> extends java.lang.Object implements Unmarshaller<java.util.List<T>,JsonUnmarshallerContext>
Modifier and Type | Field and Description |
---|---|
private Unmarshaller<T,JsonUnmarshallerContext> |
itemUnmarshaller |
Constructor and Description |
---|
ListUnmarshaller(Unmarshaller<T,JsonUnmarshallerContext> itemUnmarshaller) |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
unmarshall(JsonUnmarshallerContext context)
Unmarshalls the response headers or the json doc in the payload to the
list
|
private java.util.List<T> |
unmarshallJsonToList(JsonUnmarshallerContext context)
Unmarshalls the current token in the Json document to list.
|
private java.util.List<T> |
unmarshallResponseHeaderToList(JsonUnmarshallerContext context)
Un marshalls the response header into the list.
|
private final Unmarshaller<T,JsonUnmarshallerContext> itemUnmarshaller
public ListUnmarshaller(Unmarshaller<T,JsonUnmarshallerContext> itemUnmarshaller)
public java.util.List<T> unmarshall(JsonUnmarshallerContext context) throws java.lang.Exception
unmarshall
in interface Unmarshaller<java.util.List<T>,JsonUnmarshallerContext>
java.lang.Exception
private java.util.List<T> unmarshallResponseHeaderToList(JsonUnmarshallerContext context) throws java.lang.Exception
java.lang.Exception
private java.util.List<T> unmarshallJsonToList(JsonUnmarshallerContext context) throws java.lang.Exception
java.lang.Exception