Annotation MessageInterceptor

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Target(value = METHOD)@Retention(value = RUNTIME) 
    public @interface MessageInterceptor
    
                        

    Annotation to define if a method of an object is called back by an interceptor processor.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String value() Defines an action filter.
      abstract int sequenceNumber() Interceptors are sorted and called in the order given by the sequence number in here.
      abstract Direction direction() Defines in which communication direction the interceptor method is invoked.
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • value

         abstract 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.

      • sequenceNumber

         abstract int sequenceNumber()

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

        Default is 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.

      • direction

         abstract 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.