public class EntityStreamCollectionHandler extends Object implements RestResponseHandler
Modifier and Type | Field and Description |
---|---|
static String |
COLLECTION_ENTITIES |
static String |
COLLECTION_SIZE |
static String |
COLLECTION_TIME |
Constructor and Description |
---|
EntityStreamCollectionHandler() |
Modifier and Type | Method and Description |
---|---|
<T extends RestEntity> |
deserialize(Class<T> dataType,
InputStream inputStream) |
<T extends RestEntity> |
deserialize(Class<T> dataType,
String data) |
String |
getMediaType() |
void |
serialize(RestEntity entity,
OutputStream outputStream) |
public static final String COLLECTION_SIZE
public static final String COLLECTION_TIME
public static final String COLLECTION_ENTITIES
public <T extends RestEntity> T deserialize(Class<T> dataType, InputStream inputStream) throws RestException
deserialize
in interface RestResponseHandler
RestException
public <T extends RestEntity> T deserialize(Class<T> dataType, String data) throws RestException
deserialize
in interface RestResponseHandler
RestException
public void serialize(RestEntity entity, OutputStream outputStream) throws RestException
serialize
in interface RestResponseHandler
RestException
public String getMediaType()
getMediaType
in interface RestResponseHandler
Copyright © 2015. All rights reserved.