public class URLEditor extends PropertyEditorSupportSE
java.net.URL
のエディター。String プロパティをブリッジとして使用する代わりに、URL プロパティを直接入力します。Spring スタイルの URL 表記をサポート: 完全修飾の標準 URL( "file:"、"http:" など)と Spring の特別な "classpath:" 疑似 URL、および Spring のコンテキスト固有の相対ファイルパス。
メモ: URL は有効なプロトコルを指定する必要があります。指定しない場合、事前に拒否されます。ただし、URL の作成時にターゲットリソースが存在している必要はありません。これは、特定のリソース型によって異なります。
URL
SE, ResourceEditor
, ResourceLoader
, FileEditor
, InputStreamEditor
コンストラクターと説明 |
---|
URLEditor() 下にあるデフォルトの ResourceEditor を使用して、新しい URLEditor を作成します。 |
URLEditor(ResourceEditor resourceEditor) 下にある ResourceEditor を使用して、新しい URLEditor を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
StringSE | getAsText() |
void | setAsText(StringSE text) |
addPropertyChangeListenerSE, firePropertyChangeSE, getCustomEditorSE, getJavaInitializationStringSE, getSourceSE, getTagsSE, getValueSE, isPaintableSE, paintValueSE, removePropertyChangeListenerSE, setSourceSE, setValueSE, supportsCustomEditorSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public URLEditor()
public URLEditor(ResourceEditor resourceEditor)
resourceEditor
- 使用する ResourceEditorpublic void setAsText(StringSE text) throws IllegalArgumentExceptionSE
PropertyEditorSE
の setAsTextSE
PropertyEditorSupportSE
の setAsTextSE
IllegalArgumentExceptionSE
public StringSE getAsText()
PropertyEditorSE
の getAsTextSE
PropertyEditorSupportSE
の getAsTextSE