Class FormWriter

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyWriter<Dom>

    @Produces("application/x-www-form-urlencoded")
    @Provider
    public class FormWriter
    extends Object
    implements jakarta.ws.rs.ext.MessageBodyWriter<Dom>
    Author:
    mh124079, Ludovic Champenois [email protected]
    • Field Detail

      • uriInfo

        @Context
        protected jakarta.inject.Provider<jakarta.ws.rs.core.UriInfo> uriInfo
    • Constructor Detail

      • FormWriter

        public FormWriter()
    • Method Detail

      • isWriteable

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

        public long getSize​(Dom data,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Dom>