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 boolean
private boolean
private boolean
protected javax.ws.rs.ext.Providers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Marshaller
decorateMarshaller
(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) static Unmarshaller
decorateUnmarshaller
(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 String
getCharset
(javax.ws.rs.core.MediaType mediaType) FIXME Comment thisprotected Marshaller
getMarshaller
(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisboolean
boolean
boolean
boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) protected abstract boolean
isReadWritable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) protected boolean
protected T
processWithSecureProcessing
(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 void
setCharset
(javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) void
setDisableDTDs
(boolean disableDTDs) void
setDisableExternalEntities
(boolean disableExternalEntities) void
setEnableSecureProcessingFeature
(boolean enableSecureProcessingFeature) 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) Methods inherited from class org.jboss.resteasy.plugins.providers.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
-