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.

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.3, 2.7.14, 3.1
    • Fix Version/s: 3.0.4, 2.7.15, 3.1
    • Component/s: JAXB Databinding
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: