T
- public abstract class AbstractJAXBProvider<T> extends AbstractEntityProvider<T>
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 |
---|
AbstractJAXBProvider() |
Modifier and Type | Method and Description |
---|---|
static javax.xml.bind.Marshaller |
decorateMarshaller(java.lang.Class type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.xml.bind.Marshaller marshaller) |
static javax.xml.bind.Unmarshaller |
decorateUnmarshaller(java.lang.Class type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.xml.bind.Unmarshaller marshaller) |
javax.xml.bind.JAXBContext |
findJAXBContext(java.lang.Class<?> type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
boolean reader) |
static java.lang.String |
getCharset(javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
protected javax.xml.bind.Marshaller |
getMarshaller(java.lang.Class<?> type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
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 abstract boolean |
isReadWritable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
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() |
protected T |
processWithSecureProcessing(javax.xml.bind.Unmarshaller unmarshaller,
java.io.InputStream entityStream,
java.lang.String charset) |
T |
readFrom(java.lang.Class<T> 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) |
static void |
setCharset(javax.ws.rs.core.MediaType mediaType,
javax.xml.bind.Marshaller marshaller) |
void |
setDisableDTDs(boolean disableDTDs) |
void |
setDisableExternalEntities(boolean disableExternalEntities) |
void |
setEnableSecureProcessingFeature(boolean enableSecureProcessingFeature) |
void |
writeTo(T t,
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 outputStream) |
getSize
@Context protected javax.ws.rs.ext.Providers providers
private boolean disableExternalEntities
private boolean enableSecureProcessingFeature
private boolean disableDTDs
public javax.xml.bind.JAXBContext findJAXBContext(java.lang.Class<?> type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, boolean reader) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static javax.xml.bind.Marshaller decorateMarshaller(java.lang.Class type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.xml.bind.Marshaller marshaller) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static javax.xml.bind.Unmarshaller decorateUnmarshaller(java.lang.Class type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.xml.bind.Unmarshaller marshaller) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public T readFrom(java.lang.Class<T> 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
java.io.IOException
public void writeTo(T t, 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 outputStream) throws java.io.IOException
java.io.IOException
protected javax.xml.bind.Marshaller getMarshaller(java.lang.Class<?> type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type
- mediaType
- httpHeaders
- public static void setCharset(javax.ws.rs.core.MediaType mediaType, javax.xml.bind.Marshaller marshaller) throws javax.xml.bind.PropertyException
javax.xml.bind.PropertyException
protected abstract boolean isReadWritable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type
- genericType
- annotations
- public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public static java.lang.String getCharset(javax.ws.rs.core.MediaType mediaType)
mediaType
- public boolean isDisableExternalEntities()
public void setDisableExternalEntities(boolean disableExternalEntities)
public boolean isEnableSecureProcessingFeature()
public void setEnableSecureProcessingFeature(boolean enableSecureProcessingFeature)
public boolean isDisableDTDs()
public void setDisableDTDs(boolean disableDTDs)
protected boolean needsSecurity()
protected T processWithSecureProcessing(javax.xml.bind.Unmarshaller unmarshaller, java.io.InputStream entityStream, java.lang.String charset) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException