Class ClipboardDataProvider.TextPlain
- java.lang.Object
-
- org.glassfish.jersey.examples.clipboard.ClipboardDataProvider
-
- org.glassfish.jersey.examples.clipboard.ClipboardDataProvider.TextPlain
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader,jakarta.ws.rs.ext.MessageBodyWriter
- Enclosing class:
- ClipboardDataProvider
@Provider @Consumes("text/plain") @Produces("text/plain") public static class ClipboardDataProvider.TextPlain extends ClipboardDataProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.jersey.examples.clipboard.ClipboardDataProvider
ClipboardDataProvider.ApplicationJson, ClipboardDataProvider.TextPlain
-
-
Constructor Summary
Constructors Constructor Description TextPlain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectreadFrom(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, InputStream entityStream)voidwriteTo(Object t, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, OutputStream entityStream)-
Methods inherited from class org.glassfish.jersey.examples.clipboard.ClipboardDataProvider
getSize, isReadable, isWriteable
-
-
-
-
Method Detail
-
writeTo
public void writeTo(Object t, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
readFrom
public Object readFrom(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
-