Class FormUrlEncodedProvider

java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.FormUrlEncodedProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>, jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.Form>

public class FormUrlEncodedProvider extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.Form>, jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>
  • Constructor Details

    • FormUrlEncodedProvider

      public FormUrlEncodedProvider()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>
    • readFrom

      public jakarta.ws.rs.core.Form readFrom(Class<jakarta.ws.rs.core.Form> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<jakarta.ws.rs.core.Form>
      Throws:
      IOException
    • doReadFrom

      protected jakarta.ws.rs.core.Form doReadFrom(jakarta.ws.rs.core.MediaType mediaType, InputStream entityStream) throws IOException
      Throws:
      IOException
    • 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<jakarta.ws.rs.core.Form>
    • writeTo

      public void writeTo(jakarta.ws.rs.core.Form form, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.Form>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • formToString

      protected String formToString(jakarta.ws.rs.core.Form data, String charset) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • parseForm

      public static jakarta.ws.rs.core.MultivaluedMap<String,String> parseForm(InputStream entityStream, jakarta.ws.rs.core.MediaType charset) throws IOException
      Throws:
      IOException