Class JaxbProvider
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.provider.AbstractProvider<T>
-
- org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider<java.lang.Object>
-
- org.restlet.ext.jaxrs.internal.provider.JaxbProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<java.lang.Object>,javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
@Deprecated @Provider public class JaxbProvider extends AbstractJaxbProvider<java.lang.Object>
Deprecated.Will be removed in next minor release.Provider for JAXB objects.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanexpandingEntityRefsDeprecated.Specifies that the parser will expand entity reference nodes.private java.util.logging.LoggerloggerDeprecated.private booleansecureProcessingDeprecated.Limits potential XML overflow attacks.private booleanvalidatingDtdDeprecated.Indicates the desire for validating this type of XML representations against a DTD.private booleanxIncludeAwareDeprecated.Indicates the desire for processing XInclude if found in this type of XML representations.
-
Constructor Summary
Constructors Constructor Description JaxbProvider()Deprecated.Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) java.util.logging.LoggergetLogger()Deprecated.booleanisExpandingEntityRefs()Deprecated.Indicates if the parser will expand entity reference nodes.booleanisReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.booleanisSecureProcessing()Deprecated.Indicates if it limits potential XML overflow attacks.booleanisValidatingDtd()Deprecated.Indicates the desire for validating this type of XML representations against an XML schema if one is referenced within the contents.booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.booleanisXIncludeAware()Deprecated.Indicates the desire for processing XInclude if found in this type of XML representations.java.lang.ObjectreadFrom(java.lang.Class<java.lang.Object> 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)Deprecated.voidsetExpandingEntityRefs(boolean expandEntityRefs)Deprecated.Indicates if the parser will expand entity reference nodes.voidsetSecureProcessing(boolean secureProcessing)Deprecated.Indicates if it limits potential XML overflow attacks.voidsetValidatingDtd(boolean validating)Deprecated.Indicates the desire for validating this type of XML representations against an XML schema if one is referenced within the contents.voidsetXIncludeAware(boolean includeAware)Deprecated.Indicates the desire for processing XInclude if found in this type of XML representations.voidwriteTo(java.lang.Object object, 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> httpResponseHeaders, java.io.OutputStream entityStream)Deprecated.-
Methods inherited from class org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider
getJaxbContext, getSize, marshal, setContextResolver, setContextResolver
-
Methods inherited from class org.restlet.ext.jaxrs.internal.provider.AbstractProvider
logAndIOExc, supportedClass
-
-
-
-
Field Detail
-
expandingEntityRefs
private volatile boolean expandingEntityRefs
Deprecated.Specifies that the parser will expand entity reference nodes. By default the value of this is set to true.
-
logger
private final java.util.logging.Logger logger
Deprecated.
-
secureProcessing
private boolean secureProcessing
Deprecated.Limits potential XML overflow attacks.
-
validatingDtd
private volatile boolean validatingDtd
Deprecated.Indicates the desire for validating this type of XML representations against a DTD. Note that for XML schema or Relax NG validation, use the "schema" property instead.- See Also:
DocumentBuilderFactory.setValidating(boolean)
-
xIncludeAware
private volatile boolean xIncludeAware
Deprecated.Indicates the desire for processing XInclude if found in this type of XML representations. By default the value of this is set to false.- See Also:
DocumentBuilderFactory.setXIncludeAware(boolean)
-
-
Method Detail
-
getLogger
java.util.logging.Logger getLogger()
Deprecated.- Specified by:
getLoggerin classAbstractJaxbProvider<java.lang.Object>
-
isExpandingEntityRefs
public boolean isExpandingEntityRefs()
Deprecated.Indicates if the parser will expand entity reference nodes. By default the value of this is set to true.- Returns:
- True if the parser will expand entity reference nodes.
-
isReadable
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<java.lang.Object>- Overrides:
isReadablein classAbstractProvider<java.lang.Object>
-
isSecureProcessing
public boolean isSecureProcessing()
Deprecated.Indicates if it limits potential XML overflow attacks.- Returns:
- True if it limits potential XML overflow attacks.
-
isValidatingDtd
public boolean isValidatingDtd()
Deprecated.Indicates the desire for validating this type of XML representations against an XML schema if one is referenced within the contents.- Returns:
- True if the schema-based validation is enabled.
-
isWriteable
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<java.lang.Object>- Overrides:
isWriteablein classAbstractProvider<java.lang.Object>
-
isXIncludeAware
public boolean isXIncludeAware()
Deprecated.Indicates the desire for processing XInclude if found in this type of XML representations. By default the value of this is set to false.- Returns:
- The current value of the xIncludeAware flag.
-
readFrom
public java.lang.Object readFrom(java.lang.Class<java.lang.Object> 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.IOExceptionDeprecated.- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<java.lang.Object>- Specified by:
readFromin classAbstractProvider<java.lang.Object>genericType- The genericTypeto convert to.annotations- the annotations of the artefact to convert to- Throws:
java.io.IOException- See Also:
MessageBodyReader#readFrom(Class, Type, MediaType, Annotation[], MultivaluedMap, InputStream)
-
setExpandingEntityRefs
public void setExpandingEntityRefs(boolean expandEntityRefs)
Deprecated.Indicates if the parser will expand entity reference nodes. By default the value of this is set to true.- Parameters:
expandEntityRefs- True if the parser will expand entity reference nodes.
-
setSecureProcessing
public void setSecureProcessing(boolean secureProcessing)
Deprecated.Indicates if it limits potential XML overflow attacks.- Parameters:
secureProcessing- True if it limits potential XML overflow attacks.
-
setValidatingDtd
public void setValidatingDtd(boolean validating)
Deprecated.Indicates the desire for validating this type of XML representations against an XML schema if one is referenced within the contents.- Parameters:
validating- The new validation flag to set.
-
setXIncludeAware
public void setXIncludeAware(boolean includeAware)
Deprecated.Indicates the desire for processing XInclude if found in this type of XML representations. By default the value of this is set to false.- Parameters:
includeAware- The new value of the xIncludeAware flag.
-
writeTo
public void writeTo(java.lang.Object object, 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> httpResponseHeaders, java.io.OutputStream entityStream) throws java.io.IOExceptionDeprecated.- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<java.lang.Object>- Specified by:
writeToin classAbstractProvider<java.lang.Object>- Throws:
java.io.IOException- See Also:
MessageBodyWriter.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream)
-
-