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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.Form
doReadFrom
(jakarta.ws.rs.core.MediaType mediaType, InputStream entityStream) protected String
formToString
(jakarta.ws.rs.core.Form data, String charset) boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) parseForm
(InputStream entityStream, jakarta.ws.rs.core.MediaType charset) 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) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.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
-