Class ClipboardDataProvider
- java.lang.Object
-
- org.glassfish.jersey.examples.clipboard.ClipboardDataProvider
-
- All Implemented Interfaces:
MessageBodyReader,MessageBodyWriter
- Direct Known Subclasses:
ClipboardDataProvider.ApplicationJson,ClipboardDataProvider.TextPlain
public abstract class ClipboardDataProvider extends Object implements MessageBodyWriter, MessageBodyReader
- Author:
- Jakub Podlesak
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClipboardDataProvider.ApplicationJsonstatic classClipboardDataProvider.TextPlain
-
Constructor Summary
Constructors Constructor Description ClipboardDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(Object t, Class type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanisReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanisWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyReader
readFrom
-
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
writeTo
-
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isWriteablein interfaceMessageBodyWriter
-
getSize
public long getSize(Object t, Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
getSizein interfaceMessageBodyWriter
-
isReadable
public boolean isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isReadablein interfaceMessageBodyReader
-
-