Package org.jaxxy.io
Class MessageBodyProvider<T>
- java.lang.Object
-
- org.jaxxy.io.MessageBodyProvider<T>
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>,javax.ws.rs.ext.MessageBodyWriter<T>
- Direct Known Subclasses:
CharacterMessageBodyProvider
@Provider public abstract class MessageBodyProvider<T> extends Object implements javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
-
-
Constructor Summary
Constructors Constructor Description MessageBodyProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)protected booleanisSupportedType(Class<?> type)Override to customize the types supported by this provider.booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<T>
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
isSupportedType
protected boolean isSupportedType(Class<?> type)
Override to customize the types supported by this provider.- Parameters:
type- the type- Returns:
- whether or not the type is to be supported by this provider
-
-