クラスの使用
org.springframework.web.util.UriComponentsBuilder
パッケージ
説明
アノテーションベースのハンドラーメソッド処理のクラスをサポートします。
ハンドラーメソッド処理の汎用サポートクラス。
org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。Spring の Web MVC フレームワークのサポートクラス。
HTML エスケープや Cookie 処理などのその他の Web ユーティリティクラス。
org.springframework.web.method.annotation 内の UriComponentsBuilder 使用
修飾子と型メソッド説明void
RequestParamMethodArgumentResolver.contributeMethodArgument
(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE, ObjectSE> uriVariables, ConversionService conversionService) org.springframework.web.method.support 内の UriComponentsBuilder 使用
修飾子と型メソッド説明void
CompositeUriComponentsContributor.contributeMethodArgument
(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE, ObjectSE> uriVariables) 構築時に作成された ConversionService を使用するオーバーロードメソッド。void
CompositeUriComponentsContributor.contributeMethodArgument
(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE, ObjectSE> uriVariables, ConversionService conversionService) void
UriComponentsContributor.contributeMethodArgument
(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE, ObjectSE> uriVariables, ConversionService conversionService) 指定されたメソッド引数を処理し、UriComponentsBuilder
を更新するか、すべての引数が処理された後に URI を展開するために使用する URI 変数でマップに追加します。org.springframework.web.servlet.mvc.method.annotation 内の UriComponentsBuilder 使用
修飾子と型メソッド説明static UriComponentsBuilder
MvcUriComponentsBuilder.fromController
(ClassSE<?> controllerType) コントローラークラスのマッピングとサーブレットマッピングを含む現在のリクエスト情報からUriComponentsBuilder
を作成します。static UriComponentsBuilder
MvcUriComponentsBuilder.fromController
(UriComponentsBuilder builder, ClassSE<?> controllerType) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromController(Class)
の代替。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethod
(ClassSE<?> controllerType, MethodSE method, ObjectSE... args) コントローラーメソッドとメソッド引数値の配列のマッピングからUriComponentsBuilder
を作成します。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethod
(UriComponentsBuilder baseUrl, ClassSE<?> controllerType, MethodSE method, ObjectSE... args) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMethod(Class, Method, Object...)
の代替。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethodCall
(ObjectSE info) 「モック」コントローラーメソッドを呼び出して、UriComponentsBuilder
を作成します。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethodCall
(UriComponentsBuilder builder, ObjectSE info) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMethodCall(Object)
の代替。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethodName
(ClassSE<?> controllerType, StringSE methodName, ObjectSE... args) コントローラーメソッドとメソッド引数値の配列のマッピングからUriComponentsBuilder
を作成します。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethodName
(UriComponentsBuilder builder, ClassSE<?> controllerType, StringSE methodName, ObjectSE... args) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMethodName(Class, String, Object...)
の代替。MvcUriComponentsBuilder.withController
(ClassSE<?> controllerType) MvcUriComponentsBuilder.relativeTo(org.springframework.web.util.UriComponentsBuilder)
の呼び出しを介して作成されたこのクラスのインスタンスで使用するMvcUriComponentsBuilder.fromController(Class)
の代替。MvcUriComponentsBuilder.withMethod
(ClassSE<?> controllerType, MethodSE method, ObjectSE... args) MvcUriComponentsBuilder.withMethodCall
(ObjectSE invocationInfo) MvcUriComponentsBuilder.relativeTo(org.springframework.web.util.UriComponentsBuilder)
を介して作成されたこのクラスのインスタンスで使用するMvcUriComponentsBuilder.fromMethodCall(Object)
の代替。MvcUriComponentsBuilder.withMethodName
(ClassSE<?> controllerType, StringSE methodName, ObjectSE... args) 修飾子と型メソッド説明void
PathVariableMethodArgumentResolver.contributeMethodArgument
(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE, ObjectSE> uriVariables, ConversionService conversionService) static UriComponentsBuilder
MvcUriComponentsBuilder.fromController
(UriComponentsBuilder builder, ClassSE<?> controllerType) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromController(Class)
の代替。MvcUriComponentsBuilder.fromMappingName
(UriComponentsBuilder builder, StringSE name) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMappingName(String)
の代替。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethod
(UriComponentsBuilder baseUrl, ClassSE<?> controllerType, MethodSE method, ObjectSE... args) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMethod(Class, Method, Object...)
の代替。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethodCall
(UriComponentsBuilder builder, ObjectSE info) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMethodCall(Object)
の代替。static UriComponentsBuilder
MvcUriComponentsBuilder.fromMethodName
(UriComponentsBuilder builder, ClassSE<?> controllerType, StringSE methodName, ObjectSE... args) ベース URL を表すUriComponentsBuilder
を受け入れるMvcUriComponentsBuilder.fromMethodName(Class, String, Object...)
の代替。static MvcUriComponentsBuilder
MvcUriComponentsBuilder.relativeTo
(UriComponentsBuilder baseUrl) ベース URL を使用して、このクラスのインスタンスを作成します。修飾子コンストラクター説明MethodArgumentBuilder
(UriComponentsBuilder baseUrl, ClassSE<?> controllerType, MethodSE method) 新しいMvcUriComponentsBuilder.MethodArgumentBuilder
インスタンスを作成します。protected
デフォルトコンストラクター。org.springframework.web.servlet.support 内の UriComponentsBuilder 使用
修飾子と型クラス説明class
現在の HttpServletRequest に基づいてリンクを作成するための静的ファクトリメソッドが追加された UriComponentsBuilder。org.springframework.web.util 内の UriComponentsBuilder 使用
修飾子と型メソッド説明UriComponentsBuilder.cloneBuilder()
このUriComponentsBuilder
を複製します。final UriComponentsBuilder
UriComponentsBuilder.encode()
ビルド時に URI テンプレートを事前にエンコードし、展開時に URI 変数を個別にエンコードするようリクエストします。"UTF-8" 以外の文字セットを持つencode()
のバリアント。static UriComponentsBuilder
UriComponentsBuilder.fromHttpRequest
(HttpRequest request) 指定された HttpRequest に関連付けられた URI から新しいUriComponents
オブジェクトを作成すると同時に、ヘッダー "Forwarded" (RFC 7239)、または "X-Forwarded-Host"、"X-Forwarded-Port"、「X-Forwarded 「転送」が見つからない場合は「プロト」。static UriComponentsBuilder
UriComponentsBuilder.fromHttpUrl
(StringSE httpUrl) 指定された HTTP URL 文字列から URI コンポーネントビルダーを作成します。static UriComponentsBuilder
UriComponentsBuilder.fromOriginHeader
(StringSE origin) HTTP リクエストの "Origin" ヘッダーを解析してインスタンスを作成します。static UriComponentsBuilder
指定されたパスで初期化されるビルダーを作成します。static UriComponentsBuilder
指定されたURI
から初期化されるビルダーを作成します。static UriComponentsBuilder
UriComponentsBuilder.fromUriString
(StringSE uri) 指定された URI 文字列で初期化されるビルダーを作成します。static UriComponentsBuilder
UriComponentsBuilder.newInstance()
新しい空のビルダーを作成します。UriComponentsBuilder.pathSegment
(StringSE... pathSegments) UriComponentsBuilder.port
(int port) UriComponentsBuilder.queryParam
(StringSE name, ObjectSE... values) UriComponentsBuilder.queryParam
(StringSE name, CollectionSE<?> values) UriComponentsBuilder.queryParamIfPresent
(StringSE name, OptionalSE<?> value) UriComponentsBuilder.queryParams
(MultiValueMap<StringSE, StringSE> params) 複数のクエリパラメーターと値を追加します。UriComponentsBuilder.replacePath
(StringSE path) UriComponentsBuilder.replaceQuery
(StringSE query) UriComponentsBuilder.replaceQueryParam
(StringSE name, ObjectSE... values) UriComponentsBuilder.replaceQueryParam
(StringSE name, CollectionSE<?> values) UriComponentsBuilder.replaceQueryParams
(MultiValueMap<StringSE, StringSE> params) 既存の値をすべて削除した後、クエリパラメーター値を設定します。UriComponentsBuilder.schemeSpecificPart
(StringSE ssp) URI スキーム固有部分を設定します。指定された URI のコンポーネントからこのビルダーのコンポーネントを初期化します。UriComponentsBuilder.uriComponents
(UriComponents uriComponents) 指定されたUriComponents
インスタンスの値から、このビルダーの個々の URI コンポーネントを設定または追加します。UriComponentsBuilder.uriVariables
(MapSE<StringSE, ObjectSE> uriVariables) ビルド時に展開される URI 変数を構成します。修飾子と型メソッド説明protected abstract void
UriComponents.copyToUriComponentsBuilder
(UriComponentsBuilder builder) 指定された UriComponentsBuilder のすべてのコンポーネントを設定します。修飾子コンストラクター説明UriComponentsBuilder
を使用したDefaultUriBuilderFactory(String)
のバリアント。protected
指定された UriComponentsBuilder のディープコピーを作成します。