|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.mail.URLName
public final class URLName
URL の名前です。 このクラスは URL 名を表し、大部分のインターネット標準 URL 体系を 構文解析する為の、基本的な構文解析機能も提供します。
このクラスは java.net.URL
とは異なります。
このクラスは URL の名前を表すだけで、URL への接続をモデル化しません。
フィールドの概要 | |
---|---|
protected String |
fullURL
URL の完全バージョンです。 |
コンストラクタの概要 | |
---|---|
URLName(String url)
文字列から URLName を構築します。 |
|
URLName(String protocol,
String host,
int port,
String file,
String username,
String password)
指定されたプロトコル、ホスト、ポート番号、ファイル、ユーザ名、 及びパスワードから URLName オブジェクトを作成します。 |
|
URLName(URL url)
java.net.URL オブジェクトから URLName を構築します。 |
メソッドの概要 | |
---|---|
boolean |
equals(Object obj)
2 つの URLName を比較します。 |
String |
getFile()
この URLName のファイル名を返します。 |
String |
getHost()
この URLName のホストを返します。 |
String |
getPassword()
この URLName のパスワードを返します。 |
int |
getPort()
この URLName のポート番号を返します。 |
String |
getProtocol()
この URLName のプロトコルを返します。 |
String |
getRef()
この URLName の参照を返します。 |
URL |
getURL()
URLName から URL を構築します。 |
String |
getUsername()
この URLName のユーザ名を返します。 |
int |
hashCode()
この URLName のハッシュコードを計算します。 |
protected void |
parseString(String url)
文字列の構文解析に関するすべての作業を行うメソッドです。 |
String |
toString()
この URLName の文字列表現を構築します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
protected String fullURL
コンストラクタの詳細 |
---|
public URLName(String protocol, String host, int port, String file, String username, String password)
public URLName(URL url)
public URLName(String url)
メソッドの詳細 |
---|
public String toString()
Object
内の toString
protected void parseString(String url)
public int getPort()
public String getProtocol()
public String getFile()
public String getRef()
public String getHost()
public String getUsername()
public String getPassword()
public URL getURL() throws MalformedURLException
MalformedURLException
public boolean equals(Object obj)
Hosts are considered equal if the names are equal (case independent) or if host name lookups for them both succeed and they both reference the same IP address.
Note that URLName has no knowledge of default port numbers for particular protocols, so "imap://host" and "imap://host:143" would not compare as equal.
Note also that the password field is not included in the comparison, nor is any reference field appended to the filename.
Object
内の equals
public int hashCode()
Object
内の hashCode
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |