@Provider @Produces(value="application/*+json") @Consumes(value="application/*+json") public class JsonMapProvider extends MapProvider
providers
Constructor and Description |
---|
JsonMapProvider() |
Modifier and Type | Method and Description |
---|---|
static String |
getCharset(javax.ws.rs.core.MediaType mediaType) |
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(Object target,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getFinder, getJAXBObject, getSize, isDisableDTDs, isDisableExternalEntities, isEnableSecureProcessingFeature, isReadable, isWrapped, isWriteable, needsSecurity, setDisableDTDs, setDisableExternalEntities, setEnableSecureProcessingFeature
public Object readFrom(Class<Object> 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<Object>
readFrom
in class MapProvider
IOException
javax.ws.rs.WebApplicationException
public static String getCharset(javax.ws.rs.core.MediaType mediaType)
public void writeTo(Object target, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
writeTo
in class MapProvider
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015 JBoss by Red Hat. All rights reserved.