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 of
application/octet-stream
entity type to/from a Path
instance.- Author:
- Markus KARG
-
Field Summary
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) final boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) final Path
readFrom
(Class<Path> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) final void
writeTo
(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
-
Constructor Details
-
PathProvider
public PathProvider()
-
-
Method Details
-
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
-