public static class RequestMappingInfo.BuilderConfiguration extends ObjectSE
| コンストラクターと説明 |
|---|
BuilderConfiguration() |
| 修飾子と型 | メソッドと説明 |
|---|---|
ContentNegotiationManager | getContentNegotiationManager()ProducesRequestCondition に使用する ContentNegotiationManager を返します(ある場合)。 |
ListSE<StringSE> | getFileExtensions() 使用すべきではありません。 5.2.4 現在。パス拡張設定オプションの非推奨については、 RequestMappingHandlerMapping のクラスレベルの注意を参照してください。 |
PathMatcher | getPathMatcher()PatternsRequestCondition に使用するカスタム PathMatcher を返します(ある場合)。 |
PathPatternParser | getPatternParser() |
UrlPathHelper | getUrlPathHelper() 使用すべきではありません。 5.3 以降、パスは外部で解決され、 ServletRequestPathUtils.getCachedPathValue(ServletRequest) で取得されます。このメソッドは常に UrlPathHelper.defaultInstance を返します。 |
void | setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)ProducesRequestCondition に使用する ContentNegotiationManager を設定します。 |
void | setPathMatcher(PathMatcher pathMatcher)PatternsRequestCondition に使用するカスタム PathMatcher を設定します。 |
void | setPatternParser(PathPatternParser patternParser)AbstractHandlerMapping.setPatternParser(PathPatternParser) に従って、解析された PathPattern の使用を有効にします。 |
void | setRegisteredSuffixPatternMatch(boolean registeredSuffixPatternMatch) 使用すべきではありません。 5.2.4 現在。パス拡張設定オプションの非推奨については、 RequestMappingHandlerMapping のクラスレベルの注意を参照してください。 |
void | setSuffixPatternMatch(boolean suffixPatternMatch) 使用すべきではありません。 5.2.4 以降。 RequestMappingHandlerMapping.setUseSuffixPatternMatch(boolean) の非推奨の注記を参照してください。 |
void | setTrailingSlashMatch(boolean trailingSlashMatch)PatternsRequestCondition で末尾のスラッシュマッチングを適用するかどうかを設定します。 |
void | setUrlPathHelper(UrlPathHelper urlPathHelper) 使用すべきではありません。 5.3 以降、パスは外部で解決され、 ServletRequestPathUtils.getCachedPathValue(ServletRequest) で取得されます |
boolean | useRegisteredSuffixPatternMatch() 使用すべきではありません。 5.2.4 現在。パス拡張設定オプションの非推奨については、 RequestMappingHandlerMapping のクラスレベルの注意を参照してください。 |
boolean | useSuffixPatternMatch() 使用すべきではありません。 5.2.4 以降。 RequestMappingHandlerMapping.setUseSuffixPatternMatch(boolean) の非推奨の注記を参照してください。 |
boolean | useTrailingSlashMatch()PatternsRequestCondition で末尾のスラッシュマッチングを適用するかどうかを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setPatternParser(@Nullable PathPatternParser patternParser)
AbstractHandlerMapping.setPatternParser(PathPatternParser) に従って、解析された PathPattern の使用を有効にします。 注意 : このプロパティは setPathMatcher(PathMatcher) と相互に排他的です。
デフォルトでは、これは有効になっていません。
@Nullable public PathPatternParser getPatternParser()
@DeprecatedSE public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper)
ServletRequestPathUtils.getCachedPathValue(ServletRequest) で取得されます。デフォルトでは、これは設定されていません。
@Nullable @DeprecatedSE public UrlPathHelper getUrlPathHelper()
ServletRequestPathUtils.getCachedPathValue(ServletRequest) を使用して取得されます。このメソッドは常に UrlPathHelper.defaultInstance を返します。public void setPathMatcher(@Nullable PathMatcher pathMatcher)
デフォルトでは、これは設定されていません。
@Nullable public PathMatcher getPathMatcher()
public void setTrailingSlashMatch(boolean trailingSlashMatch)
デフォルトでは "true" に設定されています。
public boolean useTrailingSlashMatch()
@DeprecatedSE public void setSuffixPatternMatch(boolean suffixPatternMatch)
デフォルトでは、これは "false" に設定されています。
@DeprecatedSE public boolean useSuffixPatternMatch()
@DeprecatedSE public void setRegisteredSuffixPatternMatch(boolean registeredSuffixPatternMatch)
RequestMappingHandlerMapping のクラスレベルの注記を参照してください。suffixPatternMatch=true も設定され、登録されたファイル拡張子を取得するために setContentNegotiationManager(org.springframework.web.accept.ContentNegotiationManager) も構成する必要があります。@DeprecatedSE public boolean useRegisteredSuffixPatternMatch()
RequestMappingHandlerMapping のクラスレベルの注記を参照してください。@Nullable @DeprecatedSE public ListSE<StringSE> getFileExtensions()
RequestMappingHandlerMapping のクラスレベルの注記を参照してください。registeredSuffixPatternMatch=true の場合、拡張機能は構成された contentNegotiationManager から取得されます。public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
デフォルトでは、これは設定されていません。
@Nullable public ContentNegotiationManager getContentNegotiationManager()