T
- public abstract class AbstractJAXBProvider<T> extends AbstractEntityProvider<T>
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.ext.Providers |
providers |
Constructor and Description |
---|
AbstractJAXBProvider() |
Modifier and Type | Method and Description |
---|---|
static 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) |
JAXBContext |
findJAXBContext(Class<?> type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
boolean reader) |
static String |
getCharset(javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
protected Marshaller |
getMarshaller(Class<?> type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
boolean |
isDisableDTDs() |
boolean |
isDisableExternalEntities() |
boolean |
isEnableSecureProcessingFeature() |
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 this
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected boolean |
needsSecurity() |
protected T |
processWithSecureProcessing(Unmarshaller unmarshaller,
InputStream entityStream,
String charset) |
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) |
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) |
getSize
public JAXBContext findJAXBContext(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, boolean reader) throws JAXBException
JAXBException
public static Marshaller decorateMarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) throws JAXBException
JAXBException
public static Unmarshaller decorateUnmarshaller(Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, Unmarshaller marshaller) throws JAXBException
JAXBException
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
IOException
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
IOException
protected Marshaller getMarshaller(Class<?> type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type
- mediaType
- httpHeaders
- public static void setCharset(javax.ws.rs.core.MediaType mediaType, Marshaller marshaller) throws PropertyException
PropertyException
protected abstract boolean isReadWritable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type
- genericType
- annotations
- public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public static 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(Unmarshaller unmarshaller, InputStream entityStream, String charset) throws JAXBException
JAXBException
Copyright © 2016 JBoss by Red Hat. All rights reserved.