@Provider
@Produces(value={"application/xml","application/*+xml","text/xml","text/*+xml"})
@Consumes(value={"application/xml","application/*+xml","text/xml","text/*+xml"})
public class MapProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
disableDTDs |
private boolean |
disableExternalEntities |
private boolean |
enableSecureProcessingFeature |
protected javax.ws.rs.ext.Providers |
providers |
| Constructor and Description |
|---|
MapProvider() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCharset(javax.ws.rs.core.MediaType mediaType) |
protected JAXBContextFinder |
getFinder(javax.ws.rs.core.MediaType type) |
java.lang.Object |
getJAXBObject(JAXBContextFinder finder,
javax.ws.rs.core.MediaType mediaType,
java.lang.Class<?> clazz,
org.w3c.dom.Element element) |
long |
getSize(java.lang.Object entry,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isDisableDTDs() |
boolean |
isDisableExternalEntities() |
boolean |
isEnableSecureProcessingFeature() |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected boolean |
isWrapped(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected boolean |
needsSecurity() |
java.lang.Object |
readFrom(java.lang.Class<java.lang.Object> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream) |
void |
setDisableDTDs(boolean disableDTDs) |
void |
setDisableExternalEntities(boolean disableExternalEntities) |
void |
setEnableSecureProcessingFeature(boolean enableSecureProcessingFeature) |
void |
writeTo(java.lang.Object target,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream) |
@Context protected javax.ws.rs.ext.Providers providers
private boolean disableExternalEntities
private boolean enableSecureProcessingFeature
private boolean disableDTDs
protected JAXBContextFinder getFinder(javax.ws.rs.core.MediaType type)
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>protected boolean isWrapped(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
public java.lang.Object getJAXBObject(JAXBContextFinder finder, javax.ws.rs.core.MediaType mediaType, java.lang.Class<?> clazz, org.w3c.dom.Element element) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic java.lang.Object readFrom(java.lang.Class<java.lang.Object> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionpublic boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>public long getSize(java.lang.Object entry,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>public void writeTo(java.lang.Object target,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionpublic boolean isDisableExternalEntities()
public void setDisableExternalEntities(boolean disableExternalEntities)
public boolean isEnableSecureProcessingFeature()
public void setEnableSecureProcessingFeature(boolean enableSecureProcessingFeature)
public boolean isDisableDTDs()
public void setDisableDTDs(boolean disableDTDs)
public static java.lang.String getCharset(javax.ws.rs.core.MediaType mediaType)
protected boolean needsSecurity()