Class MultivaluedMapEntityProvider
java.lang.Object
org.exoplatform.services.rest.impl.provider.MultivaluedMapEntityProvider
- 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>> EntityProvider<javax.ws.rs.core.MultivaluedMap<String,String>>
@Provider
public class MultivaluedMapEntityProvider
extends Object
implements EntityProvider<javax.ws.rs.core.MultivaluedMap<String,String>>
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(javax.ws.rs.core.MultivaluedMap<String, String> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) 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) voidwriteTo(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)
-
Constructor Details
-
MultivaluedMapEntityProvider
public MultivaluedMapEntityProvider()
-
-
Method Details
-
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, throws IOExceptionString> httpHeaders, InputStream entityStream) - Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.MultivaluedMap<String,String>> - Throws:
IOException
-
getSize
public long getSize(javax.ws.rs.core.MultivaluedMap<String, String> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) -
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, throws IOExceptionObject> httpHeaders, OutputStream entityStream) - Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.MultivaluedMap<String,String>> - Throws:
IOException
-