|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.seasar.util.net.URLUtil
public abstract class URLUtil
URL
を扱うユーティリティ・クラスです。
フィールドの概要 | |
---|---|
protected static Map<String,String> |
CANONICAL_PROTOCOLS
プロトコルを正規化するためのマップ |
コンストラクタの概要 | |
---|---|
URLUtil()
|
メソッドの概要 | |||
---|---|---|---|
static URL |
create(String spec)
文字列表現から URL オブジェクトを作成します。 |
||
static URL |
create(URL context,
String spec)
指定されたコンテキスト内の指定された仕様で構文解析することによって、 URL を生成します。 |
||
static String |
decode(String s,
String enc)
指定のエンコーディング方式で application/x-www-form-urlencoded 文字列をデコードします。 |
||
static void |
disableURLCaches()
|
static String |
encode(String s,
String enc)
指定のエンコーディング方式を使用して文字列を application/x-www-form-urlencoded
形式に変換します。 |
static URLConnection |
openConnection(URL url)
URLが参照するリモートオブジェクトへの接続を表す URLConnection オブジェクトを返します。 |
||
static InputStream |
openStream(URL url)
URLをオープンして InputStream を返します。 |
||
static String |
toCanonicalProtocol(String protocol)
プロトコルを正規化して返します。 |
||
static File |
toFile(URL fileUrl)
URLが示すJarファイルの File オブジェクトを返します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final Map<String,String> CANONICAL_PROTOCOLS
コンストラクタの詳細 |
---|
public URLUtil()
メソッドの詳細 |
---|
public static InputStream openStream(URL url)
InputStream
を返します。
url
- URL。nullであってはいけません
InputStream
public static URLConnection openConnection(URL url)
URLConnection
オブジェクトを返します。
url
- URL。nullであってはいけません
URLConnection
オブジェクトpublic static URL create(String spec)
URL
オブジェクトを作成します。
spec
- URL
として構文解析される文字列。nullや空文字列であってはいけません
URL
public static URL create(URL context, String spec)
URL
を生成します。
context
- 仕様を構文解析するコンテキスト。nullであってはいけませんspec
- URL
として構文解析される文字列。nullや空文字列であってはいけません
URL
public static String encode(String s, String enc)
application/x-www-form-urlencoded
形式に変換します。
s
- 変換対象の文字列。nullや空文字列であってはいけませんenc
- エンコーディング。nullや空文字列であってはいけません
application/x-www-form-urlencoded
でエンコード文字列public static String decode(String s, String enc)
application/x-www-form-urlencoded
文字列をデコードします。
s
- application/x-www-form-urlencoded
でエンコードされた文字列。
nullや空文字列であってはいけませんenc
- エンコーディング。nullや空文字列であってはいけません
public static String toCanonicalProtocol(String protocol)
protocol
- プロトコル。nullや空文字列であってはいけません
public static File toFile(URL fileUrl)
File
オブジェクトを返します。
fileUrl
- JarファイルのURL。nullであってはいけません
File
public static void disableURLCaches()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |