@Provider
@Produces(value={"application/*+xml","text/*+xml"})
@Consumes(value={"application/*+xml","text/*+xml"})
public class CollectionProvider
extends Object
implements javax.ws.rs.ext.MessageBodyReader<Object>, javax.ws.rs.ext.MessageBodyWriter<Object>
| Modifier and Type | Field and Description |
|---|---|
protected javax.ws.rs.ext.Providers |
providers |
| Constructor and Description |
|---|
CollectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharset(javax.ws.rs.core.MediaType mediaType) |
protected JAXBContextFinder |
getFinder(javax.ws.rs.core.MediaType type) |
Object |
getJAXBObject(JAXBContextFinder finder,
javax.ws.rs.core.MediaType mediaType,
Class<?> clazz,
Element element) |
long |
getSize(Object entry,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isDisableDTDs() |
boolean |
isDisableExternalEntities() |
boolean |
isEnableSecureProcessingFeature() |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected boolean |
isWrapped(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
protected boolean |
needsSecurity() |
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
setDisableDTDs(boolean disableDTDs) |
void |
setDisableExternalEntities(boolean disableExternalEntities) |
void |
setEnableSecureProcessingFeature(boolean enableSecureProcessingFeature) |
void |
writeTo(Object entry,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
protected JAXBContextFinder getFinder(javax.ws.rs.core.MediaType type)
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Object>protected boolean isWrapped(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public Object getJAXBObject(JAXBContextFinder finder, javax.ws.rs.core.MediaType mediaType, Class<?> clazz, Element element) throws JAXBException
JAXBExceptionpublic Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Object>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>public long getSize(Object entry, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>public void writeTo(Object entry, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Object>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 String getCharset(javax.ws.rs.core.MediaType mediaType)
protected boolean needsSecurity()
Copyright © 2017 JBoss by Red Hat. All rights reserved.