@Produces(value={"application/x-www-form-urlencoded","*/*"}) @Consumes(value={"application/x-www-form-urlencoded","*/*"}) @Singleton public final class FormProvider extends AbstractFormProvider<javax.ws.rs.core.Form>
application/x-www-form-urlencoded
entity type to/from JAX-RS Form
instance.UTF8
Constructor and Description |
---|
FormProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
javax.ws.rs.core.Form |
readFrom(Class<javax.ws.rs.core.Form> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(javax.ws.rs.core.Form t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
readFrom, writeTo
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public javax.ws.rs.core.Form readFrom(Class<javax.ws.rs.core.Form> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
IOException
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public void writeTo(javax.ws.rs.core.Form t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
IOException
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.