|
Kagetaka | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectnet.hizlab.kagetaka.addin.cookie.Cookie
クッキーを表すクラスです。
| コンストラクタの概要 | |
Cookie(String line)
タブ区切りの文字列から履歴情報を作成します。 |
|
Cookie(String data,
URL url,
boolean strict)
Set-Cookie ヘッダーの文字列から、新しいクッキーを作成します。 |
|
| メソッドの概要 | |
String |
getDomain()
ドメイン名を返します。 |
long |
getExpires()
有効期限を返します。 |
String |
getFullValue()
クッキーの名前と値の組を返します。 |
String |
getName()
クッキー名を返します。 |
Cookie |
getNext()
クッキーチェーンの次のクッキーを返します。 |
String |
getPath()
パスを返します。 |
String |
getValue()
クッキーの値を返します。 |
boolean |
isSecure()
セキュアが指定されているかを返します。 |
boolean |
isTargetHost(String host)
指定されたホストが、このクッキーの対象かどうかを返します。 |
boolean |
isTargetPath(String path)
指定されたパスが、このクッキーの対象かどうかを返します。 |
String |
toString()
文字列に変換します。 |
void |
write(Writer w)
クッキーをタブ区切りで出力します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public Cookie(String line)
throws InvalidObjectException
line - 文字列
InvalidObjectException - 不正なフォーマットの場合
public Cookie(String data,
URL url,
boolean strict)
throws ParseException
Set-Cookie ヘッダーの文字列から、新しいクッキーを作成します。
data - Set-Cookie ヘッダーの文字列url - クッキーを送ってきた URLstrict - 正しいクッキーのみを受け付ける場合は true、
なるべく解析する場合は false
ParseException - 不正なフォーマットの場合| メソッドの詳細 |
public String getDomain()
public long getExpires()
public String getFullValue()
public String getName()
public Cookie getNext()
nullpublic String getPath()
public String getValue()
public boolean isSecure()
true、
それ以外の場合は falsepublic boolean isTargetHost(String host)
host - 調べるホスト
true、
それ以外の場合は falsepublic boolean isTargetPath(String path)
path - 調べるパス
true、
それ以外の場合は falsepublic String toString()
public void write(Writer w)
throws IOException
w - ライタ
IOException - I/O エラーが発生した場合
|
Kagetaka | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'