Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6242

Ability to configure the format of the marshalling / unmarshalling exceptions that are thrown by JAXB when schema validation is enabled.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.3, 2.7.14, 3.1
    • 3.0.4, 2.7.15, 3.1
    • JAXB Databinding
    • None
    • Unknown

    Description

      The ability to configure custom event handlers to control the content of the marshal and unmarshal exceptions emitted from jaxb. Uses the existing ValidationEventHandler mechanism.

      For Data Reader, if the ValidationEventHandler also implements UnmarshalEventHandler, will call the onUnmarshalComplete when unmarshalling finishes to enable throwing a custom UnmarshalException rather than relying on the default from jaxb.

      For Data Writer, if the ValidationEventHandler also implements MarshalEventHandler, will call the onMarshalComplete when marshalling finishes to enable throwing a custom MarshalException rather than relying on the default from jaxb.

      Attachments

        Activity

          People

            jpell Jason Pell
            jpell Jason Pell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: