Announcement Announcement Module
Collapse
No announcement yet.
my ValidatingInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • my ValidatingInterceptor

    Hi,

    I would like to ask you for help to the following problem:

    I need to create a specialized validating interceptor that would validate certain elements in the message based on the element's type defined in the schema. To do this I would need a Schema object and would probably need to create a ValidationHandler that would do the job.
    Based on my knowledge the most appropriate thing to do would be to extend AbstractValidatingInterceptor and provide my own XmlValidator that would be able to validate the xml message. However, the validator property is private and cannot be set in child classes. And even if I was able to do this I would still need to create another Schema object - the XmlValidator implementation creates one for itself and it apprears it cannot be shared while it could as those objects are thread safe.

    Is there a neat way to do this? I could probably write an Interceptor from scratch creating the Schema object and any other that would be needed but would like to reuse some stuff that is already there if possible.

    Thanks,
    Tom
Working...
X