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 RestResponseHandlerRestExceptionpublic <T extends RestEntity> T deserialize(Class<T> dataType, String data) throws RestException
deserialize in interface RestResponseHandlerRestExceptionpublic void serialize(RestEntity entity, OutputStream outputStream) throws RestException
serialize in interface RestResponseHandlerRestExceptionpublic String getMediaType()
getMediaType in interface RestResponseHandlerCopyright © 2015. All rights reserved.