org.odata4j.producer.resources
Class ODataBatchProvider

java.lang.Object
  extended by org.odata4j.producer.resources.ODataBatchProvider
All Implemented Interfaces:
MessageBodyReader<List<BatchBodyPart>>

@Provider
public class ODataBatchProvider
extends Object
implements MessageBodyReader<List<BatchBodyPart>>


Nested Class Summary
static class ODataBatchProvider.HTTP_METHOD
           
 
Field Summary
static String MULTIPART_MIXED
           
 
Constructor Summary
ODataBatchProvider()
           
 
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
 

Field Detail

MULTIPART_MIXED

public static final String MULTIPART_MIXED
See Also:
Constant Field Values
Constructor Detail

ODataBatchProvider

public ODataBatchProvider()
Method Detail

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