Class JaxrsFormProvider

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

    @Provider
    @Produces("application/x-www-form-urlencoded")
    @Consumes("application/x-www-form-urlencoded")
    public class JaxrsFormProvider
    extends java.lang.Object
    implements javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Form>, javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.Form>
    Version:
    $Revision: 1 $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSize​(javax.ws.rs.core.Form form, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      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 form, 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

      • JaxrsFormProvider

        public JaxrsFormProvider()
    • 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)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Form>
      • 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,
                                              javax.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Form>
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException
      • isWriteable

        public boolean isWriteable​(java.lang.Class<?> type,
                                   java.lang.reflect.Type genericType,
                                   java.lang.annotation.Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.Form>
      • getSize

        public long getSize​(javax.ws.rs.core.Form form,
                            java.lang.Class<?> type,
                            java.lang.reflect.Type genericType,
                            java.lang.annotation.Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.Form>
      • writeTo

        public void writeTo​(javax.ws.rs.core.Form form,
                            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,
                            javax.ws.rs.WebApplicationException
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.Form>
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException