@Provider public class RepresentationReader extends Object implements javax.ws.rs.ext.MessageBodyReader<Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation>>
MediaType.APPLICATION_FORM_URLENCODED
- in case the data are sent from an HTML form - and
MediaType.MULTIPART_FORM_DATA - mime encoded data.
In case of an HTML form the encoding need to be specified by the parameter
"encoding" for the entity data the parameters "entity" or "content" can be
used.| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
servletContext |
static Set<String> |
supportedMediaTypes |
| Constructor and Description |
|---|
RepresentationReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> |
parseFromContent(MessageBodyReaderUtils.RequestData content,
javax.ws.rs.core.MediaType acceptedMediaType) |
Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> |
readFrom(Class<Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> readFrom(Class<Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation>>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic Map<String,org.apache.stanbol.entityhub.servicesapi.model.Representation> parseFromContent(MessageBodyReaderUtils.RequestData content, javax.ws.rs.core.MediaType acceptedMediaType)
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.