org.odata4j.producer.resources
Class ODataBatchProvider
java.lang.Object
org.odata4j.producer.resources.ODataBatchProvider
- All Implemented Interfaces:
- MessageBodyReader<List<BatchBodyPart>>
@Provider
public class ODataBatchProvider
- extends Object
- implements MessageBodyReader<List<BatchBodyPart>>
Method Summary |
static String |
createResponseBodyPart(BatchBodyPart bodyPart,
Response response)
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] antns,
MediaType mt)
|
List<BatchBodyPart> |
readFrom(Class<List<BatchBodyPart>> type,
Type genericType,
Annotation[] antns,
MediaType mt,
MultivaluedMap<String,String> mm,
InputStream inputStream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MULTIPART_MIXED
public static final String MULTIPART_MIXED
- See Also:
- Constant Field Values
ODataBatchProvider
public ODataBatchProvider()
createResponseBodyPart
public static String createResponseBodyPart(BatchBodyPart bodyPart,
Response response)
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] antns,
MediaType mt)
- Specified by:
isReadable
in interface MessageBodyReader<List<BatchBodyPart>>
readFrom
public List<BatchBodyPart> readFrom(Class<List<BatchBodyPart>> type,
Type genericType,
Annotation[] antns,
MediaType mt,
MultivaluedMap<String,String> mm,
InputStream inputStream)
throws IOException,
WebApplicationException
- Specified by:
readFrom
in interface MessageBodyReader<List<BatchBodyPart>>
- Throws:
IOException
WebApplicationException
http://odata4j.org