public class InterceptorRegistration extends ObjectSE
MappedInterceptor
の作成を支援します。コンストラクターと説明 |
---|
InterceptorRegistration(HandlerInterceptor interceptor) InterceptorRegistration インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
InterceptorRegistration | addPathPatterns(ListSE<StringSE> patterns) addPathPatterns(String...) のリストベースのバリアント。 |
InterceptorRegistration | addPathPatterns(StringSE... patterns) インターセプターを含める必要がある URL のパターンを追加します。 |
InterceptorRegistration | excludePathPatterns(ListSE<StringSE> patterns) excludePathPatterns(String...) のリストベースのバリアント。 |
InterceptorRegistration | excludePathPatterns(StringSE... patterns) インターセプターを除外する必要がある URL のパターンを追加します。 |
protected ObjectSE | getInterceptor() 基礎となるインターセプターを構築します。 |
protected int | getOrder() 使用するオーダー位置を返します。 |
InterceptorRegistration | order(int order) 使用するオーダー位置を指定します。 |
InterceptorRegistration | pathMatcher(PathMatcher pathMatcher) URL パスを包含および除外パターンと照合するために使用するように PathMatcher を構成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public InterceptorRegistration(HandlerInterceptor interceptor)
InterceptorRegistration
インスタンスを作成します。public InterceptorRegistration addPathPatterns(StringSE... patterns)
パターン構文については、解析されたパターンが enabled
の場合は PathPattern
を、それ以外の場合は AntPathMatcher
を参照してください。構文はほぼ同じで、PathPattern
は Web の使用に合わせて調整され、より効率的です。
public InterceptorRegistration addPathPatterns(ListSE<StringSE> patterns)
addPathPatterns(String...)
のリストベースのバリアント。public InterceptorRegistration excludePathPatterns(StringSE... patterns)
パターン構文については、解析されたパターンが enabled
の場合は PathPattern
を、それ以外の場合は AntPathMatcher
を参照してください。構文はほぼ同じで、PathPattern
は Web の使用に合わせて調整され、より効率的です。
public InterceptorRegistration excludePathPatterns(ListSE<StringSE> patterns)
excludePathPatterns(String...)
のリストベースのバリアント。public InterceptorRegistration pathMatcher(PathMatcher pathMatcher)
これは、カスタマイズされた AntPathMatcher
またはカスタム PathMatcher が必要な場合にのみ使用する必要がある高度なプロパティです。
デフォルトでは、これは AntPathMatcher
です。
注意 : PathMatcher
を設定すると、parsed
RequestPath
が使用可能な場合でも、文字列パターンマッチングの使用が強制されます。
public InterceptorRegistration order(int order)
protected int getOrder()
protected ObjectSE getInterceptor()
MappedInterceptor
です。それ以外の場合は HandlerInterceptor
。