Annotation Type MessageInterceptor


@Target(METHOD) @Retention(RUNTIME) public @interface MessageInterceptor
Annotation to define if a method of an object is called back by an interceptor processor.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines in which communication direction the interceptor method is invoked.
    int
    Interceptors are sorted and called in the order given by the sequence number in here.
    Defines an action filter.
  • Element Details

    • value

      String value
      Defines an action filter.

      The annotated method is called only if the action of the SOAP message matches this value. The default value is an empty string that stands for "match any action".

      Returns:
      the action string to match for this interceptor annotation.
      Default:
      ""
    • sequenceNumber

      int sequenceNumber
      Interceptors are sorted and called in the order given by the sequence number in here.

      Default is Integer.MAX_VALUE (means, the interceptor is put to the end of the chain).

      Note that no two interceptors of the same interceptor chain should possess the same sequence number!

      Returns:
      the sequence number.
      Default:
      2147483647
    • direction

      Direction direction
      Defines in which communication direction the interceptor method is invoked.

      By default an annotated method is invoked on any direction.

      Returns:
      the direction.
      Default:
      ANY