org.glassfish.jersey.message.internal
Class FormMultivaluedMapProvider
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<T>
org.glassfish.jersey.message.internal.AbstractFormProvider<javax.ws.rs.core.MultivaluedMap<String,String>>
org.glassfish.jersey.message.internal.FormMultivaluedMapProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.MultivaluedMap<String,String>>, javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.MultivaluedMap<String,String>>
@Produces(value="application/x-www-form-urlencoded")
@Consumes(value="application/x-www-form-urlencoded")
@Singleton
public final class FormMultivaluedMapProvider
- extends AbstractFormProvider<javax.ws.rs.core.MultivaluedMap<String,String>>
Provider for marshalling/un-marshalling of application/x-www-form-urlencoded
entity type to/from multi-valued map instance.
- Author:
- Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
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.MultivaluedMap<String,String> |
readFrom(Class<javax.ws.rs.core.MultivaluedMap<String,String>> 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.MultivaluedMap<String,String> t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.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 |
FormMultivaluedMapProvider
public FormMultivaluedMapProvider()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
readFrom
public javax.ws.rs.core.MultivaluedMap<String,String> readFrom(Class<javax.ws.rs.core.MultivaluedMap<String,String>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException
- Throws:
IOException
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
writeTo
public void writeTo(javax.ws.rs.core.MultivaluedMap<String,String> 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
- Throws:
IOException
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.