public abstract class UriComponents extends ObjectSE implements SerializableSE
URISE に似ていますが、より強力なエンコードオプションと URI テンプレート変数のサポートを備えています。UriComponentsBuilder, 連載形式 | 修飾子と型 | クラスと説明 |
|---|---|
static interface | UriComponents.UriTemplateVariablesURI テンプレート変数の規約を定義します |
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | UriComponents(StringSE scheme, StringSE fragment) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected abstract void | copyToUriComponentsBuilder(UriComponentsBuilder builder) 指定された UriComponentsBuilder のすべてのコンポーネントを設定します。 |
UriComponents | encode() 特定のエンコードルールを使用してすべての URI コンポーネントをエンコードし、結果を新しい UriComponents インスタンスとして返します。 |
abstract UriComponents | encode(StringSE encoding) 特定のエンコードルールを使用してすべての URI コンポーネントをエンコードし、結果を新しい UriComponents インスタンスとして返します。 |
UriComponents | expand(MapSE<StringSE,?> uriVariables) すべての URI テンプレート変数を特定のマップの値に置き換えます。 |
UriComponents | expand(ObjectSE... uriVariableValues) すべての URI テンプレート変数を特定の配列の値に置き換えます。 |
UriComponents | expand(UriComponents.UriTemplateVariables uriVariables) すべての URI テンプレート変数を、指定された UriComponents.UriTemplateVariables の値に置き換えます。 |
StringSE | getFragment() フラグメントを返します。 |
abstract StringSE | getHost() ホストを返します。 |
abstract StringSE | getPath() パスを返します。 |
abstract ListSE<StringSE> | getPathSegments() パスセグメントのリストを返します。 |
abstract int | getPort() ポートを返します。 |
abstract StringSE | getQuery() クエリを返します。 |
abstract MultiValueMap<StringSE, StringSE> | getQueryParams() クエリパラメーターのマップを返します。 |
StringSE | getScheme() スキームを返します。 |
abstract StringSE | getSchemeSpecificPart() スキーム固有の部分を返します。 |
abstract StringSE | getUserInfo() ユーザー情報を返します。 |
abstract UriComponents | normalize() "path/.." のようなシーケンスを削除してパスを正規化します。 |
StringSE | toString() |
abstract URISE | toUri() この UriComponents インスタンスから URI を返します。 |
abstract StringSE | toUriString() この UriComponents インスタンスから URI 文字列を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic final StringSE getScheme()
null にすることができます。public final StringSE getFragment()
null にすることができます。public abstract StringSE getSchemeSpecificPart()
null にすることができます。public abstract StringSE getUserInfo()
null にすることができます。public abstract StringSE getHost()
null にすることができます。public abstract int getPort()
-1。public abstract StringSE getPath()
null にすることができます。public abstract ListSE<StringSE> getPathSegments()
public abstract StringSE getQuery()
null にすることができます。public abstract MultiValueMap<StringSE,StringSE> getQueryParams()
public final UriComponents encode()
UriComponents インスタンスとして返します。このメソッドは、UTF-8 を使用してエンコードします。public abstract UriComponents encode(StringSE encoding) throws UnsupportedEncodingExceptionSE
UriComponents インスタンスとして返します。encoding - このマップに含まれる値のエンコーディング UnsupportedEncodingExceptionSE - 指定されたエンコーディングがサポートされていない場合 public final UriComponents expand(MapSE<StringSE,?> uriVariables)
指定されたマップキーは変数名を表します。対応する値は変数値を表します。変数の順序は重要ではありません。
uriVariables - URI 変数のマップ public final UriComponents expand(ObjectSE... uriVariableValues)
指定された配列は変数値を表します。変数の順序は重要です。
uriVariableValues - URI 変数値 public final UriComponents expand(UriComponents.UriTemplateVariables uriVariables)
UriComponents.UriTemplateVariables の値に置き換えます。uriVariables - URI テンプレート値 public abstract UriComponents normalize()
public abstract StringSE toUriString()
UriComponents インスタンスから URI 文字列を返します。public abstract URISE toUri()
UriComponents インスタンスから URI を返します。public final StringSE toString()
ObjectSE の toStringSE protected abstract void copyToUriComponentsBuilder(UriComponentsBuilder builder)