View Javadoc
1   package top.infra.web.servlet.handler;
2   
3   import lombok.AllArgsConstructor;
4   import lombok.Data;
5   import lombok.NoArgsConstructor;
6   
7   import java.io.Serializable;
8   
9   
10  /**
11   * OrderedHandlerInterceptor and patterns.
12   *
13   * @param <T> Interceptor type
14   */
15  @Data
16  @NoArgsConstructor
17  @AllArgsConstructor
18  public class OrderedHandlerInterceptor<T extends OrderedHandlerInterceptorAdapter> implements Serializable {
19  
20    /**
21     * ordered interceptor
22     */
23    private T interceptor;
24  
25    /**
26     * Add URL patterns to which the registered interceptor should apply to.
27     */
28    private String[] patterns;
29  }