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 Summary

      Constructors 
      Constructor Description
      FormProvider()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean decode​(java.lang.annotation.Annotation[] annotations)  
      boolean isReadable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      boolean isWriteable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      javax.ws.rs.core.Form readFrom​(java.lang.Class<javax.ws.rs.core.Form> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> httpHeaders, java.io.InputStream entityStream)  
      void writeTo​(javax.ws.rs.core.Form t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders, java.io.OutputStream entityStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormProvider

        public FormProvider()
    • Method Detail

      • isReadable

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

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

        private boolean decode​(java.lang.annotation.Annotation[] annotations)
      • isWriteable

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

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