Module xorcery.handlebars
Class ResourceObjectFormProvider
Object
AbstractMessageReaderWriterProvider<T>
AbstractFormProvider<ResourceObject>
ResourceObjectFormProvider
- All Implemented Interfaces:
MessageBodyReader<ResourceObject>
,MessageBodyWriter<ResourceObject>
@Produces({"application/x-www-form-urlencoded","*/*"})
@Consumes("application/x-www-form-urlencoded")
@Singleton
@Provider
public final class ResourceObjectFormProvider
extends AbstractFormProvider<ResourceObject>
-
Field Summary
Fields inherited from class AbstractMessageReaderWriterProvider
UTF8
-
Constructor Summary
ConstructorDescriptionResourceObjectFormProvider
(Provider<ContainerRequestContext> requestContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) readFrom
(Class<ResourceObject> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) void
writeTo
(ResourceObject ro, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class AbstractFormProvider
readFrom, writeTo
Methods inherited from class AbstractMessageReaderWriterProvider
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
-
Constructor Details
-
ResourceObjectFormProvider
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) -
readFrom
public ResourceObject readFrom(Class<ResourceObject> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException- Throws:
IOException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) -
writeTo
public void writeTo(ResourceObject ro, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException- Throws:
IOException
-