Class InterceptorMapping

  • All Implemented Interfaces:
    org.springframework.core.Ordered

    public class InterceptorMapping
    extends java.lang.Object
    implements org.springframework.core.Ordered
    responsible for storing mapping type code configured by setTypeCode(String), assigned interceptor Interceptor and list of replace interceptors
    Since:
    4.0
    • Constructor Detail

      • InterceptorMapping

        public InterceptorMapping()
      • InterceptorMapping

        public InterceptorMapping​(java.lang.String typeCode,
                                  Interceptor interceptor,
                                  java.util.Collection<Interceptor> replacements)
    • Method Detail

      • getInterceptor

        public Interceptor getInterceptor()
        Gets the configured interceptor.
      • setInterceptor

        public void setInterceptor​(Interceptor interceptor)
      • getTypeCode

        public java.lang.String getTypeCode()
        Gets the configured typecode.
      • setTypeCode

        public void setTypeCode​(java.lang.String typeCode)
      • getReplacedInterceptors

        public java.util.Collection<Interceptor> getReplacedInterceptors()
      • setReplacedInterceptors

        public void setReplacedInterceptors​(java.util.Collection<Interceptor> replacedInterceptors)
      • setOrder

        public final void setOrder​(int order)
        Set the ordering which will apply to this class's implementation of Ordered, used when applying multiple Interceptors.

        Default value is Integer.MAX_VALUE, meaning that it's non-ordered.

        Parameters:
        order - ordering value
      • getOrder

        public final int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered