Class ODataApplication.MyProvider
- java.lang.Object
-
- org.apache.olingo.odata2.core.rest.app.ODataApplication.MyProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<String>
- Enclosing class:
- ODataApplication
@Provider public static class ODataApplication.MyProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<String>
-
-
Constructor Summary
Constructors Constructor Description MyProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(String t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidwriteTo(String t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<String>
-
getSize
public long getSize(String t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<String>
-
writeTo
public void writeTo(String t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<String>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-