org.jboss.resteasy.plugins.providers
@Provider public class FormUrlEncodedProvider extends Object implements MessageBodyReader<MultivaluedMap<String,String>>, MessageBodyWriter<MultivaluedMap<String,String>>
Constructor and Description |
---|
FormUrlEncodedProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(MultivaluedMap<String,String> stringStringMultivaluedMap,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
static MultivaluedMap<String,String> |
parseForm(InputStream entityStream) |
MultivaluedMap<String,String> |
readFrom(Class<MultivaluedMap<String,String>> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(MultivaluedMap<String,String> formData,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable
in interface MessageBodyReader<MultivaluedMap<String,String>>
public MultivaluedMap<String,String> readFrom(Class<MultivaluedMap<String,String>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
readFrom
in interface MessageBodyReader<MultivaluedMap<String,String>>
IOException
public static MultivaluedMap<String,String> parseForm(InputStream entityStream) throws IOException
IOException
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<MultivaluedMap<String,String>>
public long getSize(MultivaluedMap<String,String> stringStringMultivaluedMap, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<MultivaluedMap<String,String>>
public void writeTo(MultivaluedMap<String,String> formData, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo
in interface MessageBodyWriter<MultivaluedMap<String,String>>
IOException
Copyright © 2015. All Rights Reserved.