Class PathProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<Path>
-
- org.glassfish.jersey.message.internal.PathProvider
-
- All Implemented Interfaces:
MessageBodyReader<Path>,MessageBodyWriter<Path>
@Produces({"application/octet-stream","*/*"}) @Consumes({"application/octet-stream","*/*"}) @Singleton public final class PathProvider extends AbstractMessageReaderWriterProvider<Path>
Provider for marshalling/un-marshalling ofapplication/octet-streamentity type to/from aPathinstance.- Author:
- Markus KARG
-
-
Field Summary
-
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8
-
-
Constructor Summary
Constructors Constructor Description PathProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)PathreadFrom(Class<Path> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)voidwriteTo(Path t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)-
Methods inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
-
-
-
-
Method Detail
-
isReadable
public final boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
-
readFrom
public final Path readFrom(Class<Path> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
- Throws:
IOException
-
isWriteable
public final boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
-
writeTo
public final void writeTo(Path t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
- Throws:
IOException
-
-