Class AbstractJAXBProvider<T>
java.lang.Object
org.jboss.resteasy.plugins.providers.AbstractEntityProvider<T>
org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider<T>
- Type Parameters:
T-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
- Direct Known Subclasses:
JAXBElementProvider, JAXBXmlRootElementProvider, JAXBXmlSeeAlsoProvider, JAXBXmlTypeProvider
A AbstractJAXBProvider.
- Version:
- $Revision:$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprotected javax.ws.rs.ext.Providers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MarshallerdecorateMarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) static UnmarshallerdecorateUnmarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Unmarshaller marshaller) findJAXBContext(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, boolean reader) static StringgetCharset(javax.ws.rs.core.MediaType mediaType) FIXME Comment thisprotected MarshallergetMarshaller(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisbooleanbooleanbooleanbooleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) protected abstract booleanisReadWritable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisbooleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) protected booleanprotected TprocessWithSecureProcessing(Unmarshaller unmarshaller, InputStream entityStream, String charset) readFrom(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) static voidsetCharset(javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) voidsetDisableDTDs(boolean disableDTDs) voidsetDisableExternalEntities(boolean disableExternalEntities) voidsetEnableSecureProcessingFeature(boolean enableSecureProcessingFeature) voidwriteTo(T t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream outputStream) Methods inherited from class AbstractEntityProvider
getSize
-
Field Details
-
providers
@Context protected javax.ws.rs.ext.Providers providers -
disableExternalEntities
private boolean disableExternalEntities -
enableSecureProcessingFeature
private boolean enableSecureProcessingFeature -
disableDTDs
private boolean disableDTDs
-
-
Constructor Details
-
AbstractJAXBProvider
public AbstractJAXBProvider()
-
-
Method Details
-
findJAXBContext
public JAXBContext findJAXBContext(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, boolean reader) throws JAXBException - Throws:
JAXBException
-
decorateMarshaller
public static Marshaller decorateMarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) throws JAXBException - Throws:
JAXBException
-
decorateUnmarshaller
public static Unmarshaller decorateUnmarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Unmarshaller marshaller) throws JAXBException - Throws:
JAXBException
-
readFrom
public T readFrom(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException- Throws:
IOException
-
writeTo
public void writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream outputStream) throws IOException- Throws:
IOException
-
getMarshaller
protected Marshaller getMarshaller(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment this- Parameters:
type-mediaType-httpHeaders-- Returns:
-
setCharset
public static void setCharset(javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) throws PropertyException - Throws:
PropertyException
-
isReadWritable
protected abstract boolean isReadWritable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment this- Parameters:
type-genericType-annotations-- Returns:
-
isReadable
public boolean isReadable(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) -
getCharset
FIXME Comment this- Parameters:
mediaType-- Returns:
-
isDisableExternalEntities
public boolean isDisableExternalEntities() -
setDisableExternalEntities
public void setDisableExternalEntities(boolean disableExternalEntities) -
isEnableSecureProcessingFeature
public boolean isEnableSecureProcessingFeature() -
setEnableSecureProcessingFeature
public void setEnableSecureProcessingFeature(boolean enableSecureProcessingFeature) -
isDisableDTDs
public boolean isDisableDTDs() -
setDisableDTDs
public void setDisableDTDs(boolean disableDTDs) -
needsSecurity
protected boolean needsSecurity() -
processWithSecureProcessing
protected T processWithSecureProcessing(Unmarshaller unmarshaller, InputStream entityStream, String charset) throws JAXBException - Throws:
JAXBException
-