Class 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 boolean expandingEntityRefs
      Deprecated.
      Specifies that the parser will expand entity reference nodes.
      private java.util.logging.Logger logger
      Deprecated.
       
      private boolean secureProcessing
      Deprecated.
      Limits potential XML overflow attacks.
      private boolean validatingDtd
      Deprecated.
      Indicates the desire for validating this type of XML representations against a DTD.
      private boolean xIncludeAware
      Deprecated.
      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.Logger getLogger()
      Deprecated.
       
      boolean isExpandingEntityRefs()
      Deprecated.
      Indicates if the parser will expand entity reference nodes.
      boolean isReadable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      boolean isSecureProcessing()
      Deprecated.
      Indicates if it limits potential XML overflow attacks.
      boolean isValidatingDtd()
      Deprecated.
      Indicates the desire for validating this type of XML representations against an XML schema if one is referenced within the contents.
      boolean isWriteable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      boolean isXIncludeAware()
      Deprecated.
      Indicates the desire for processing XInclude if found in this type of XML representations.
      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)
      Deprecated.
       
      void setExpandingEntityRefs​(boolean expandEntityRefs)
      Deprecated.
      Indicates if the parser will expand entity reference nodes.
      void setSecureProcessing​(boolean secureProcessing)
      Deprecated.
      Indicates if it limits potential XML overflow attacks.
      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.
      void setXIncludeAware​(boolean includeAware)
      Deprecated.
      Indicates the desire for processing XInclude if found in this type of XML representations.
      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)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
    • Constructor Detail

      • JaxbProvider

        public JaxbProvider()
        Deprecated.
        Default constructor.
    • Method Detail

      • 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:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
        Overrides:
        isReadable in class AbstractProvider<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:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
        Overrides:
        isWriteable in class AbstractProvider<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.IOException
        Deprecated.
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
        Specified by:
        readFrom in class AbstractProvider<java.lang.Object>
        genericType - The generic Type to 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.IOException
        Deprecated.
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
        Specified by:
        writeTo in class AbstractProvider<java.lang.Object>
        Throws:
        java.io.IOException
        See Also:
        MessageBodyWriter.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream)