Class FormProvider

All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Form>, javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.Form>

@Produces({"application/x-www-form-urlencoded","*/*"}) @Consumes({"application/x-www-form-urlencoded","*/*"}) @Singleton public final class FormProvider extends AbstractFormProvider<javax.ws.rs.core.Form>
Provider for marshalling/un-marshalling of application/x-www-form-urlencoded entity type to/from JAX-RS Form instance.
  • Constructor Details

    • FormProvider

      public FormProvider()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
    • readFrom

      public javax.ws.rs.core.Form readFrom(Class<javax.ws.rs.core.Form> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
      Throws:
      IOException
    • decode

      private boolean decode(Annotation[] annotations)
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
    • writeTo

      public void writeTo(javax.ws.rs.core.Form t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
      Throws:
      IOException