java.lang.Object
java.lang.Enum<SimpleFileServer.OutputLevel>
com.sun.net.httpserver.SimpleFileServer.OutputLevel
- すべての実装されたインタフェース:
Serializable
,Comparable<SimpleFileServer.OutputLevel>
,Constable
- 含まれているクラス:
SimpleFileServer
public static enum SimpleFileServer.OutputLevel extends Enum<SimpleFileServer.OutputLevel>
交換の処理時にサーバーによって生成されるログ・メッセージ出力レベルについて説明します。
- 導入されたバージョン:
- 18
-
ネストされたクラスのサマリー
クラスjava.lang.Enumで宣言されたネストされたクラス/インタフェース
Enum.EnumDesc<E extends Enum<E>>
-
列挙型定数のサマリー
-
メソッドのサマリー
修飾子と型メソッド説明static SimpleFileServer.OutputLevel
指定された名前を持つこのクラスのenum定数を返します。static SimpleFileServer.OutputLevel[]
values()
この列挙クラスの定数を含む配列を宣言されている順序で 返します。
-
列挙型定数の詳細
-
NONE
public static final SimpleFileServer.OutputLevel NONEログ・メッセージの出力レベルを指定しないために使用します。 -
INFO
public static final SimpleFileServer.OutputLevel INFO情報ログ・メッセージの出力レベルを指定するために使用します。ログ・メッセージの形式は、
HttpExchange
に関する次の情報を含む共通ログファイル形式に基づいています:remotehost rfc931 authuser [date] "request" status bytes
例:
127.0.0.1 - - [22/Jun/2000:13:55:36 -0700] "GET /example.txt HTTP/1.1" 200 -
- 実装上のノート:
- フィールド
rfc931
、authuser
およびbytes
は実装で取得されないため、常に'-'
として表されます。
-
VERBOSE
public static final SimpleFileServer.OutputLevel VERBOSE詳細ログ・メッセージの出力レベルを指定するために使用します。infoレベルで提供される情報に加えて、冗長レベルには、
HttpExchange
のリクエスト・ヘッダーとレスポンス・ヘッダー、および処理されるリソースの絶対パスが含まれます。
-
-
メソッドの詳細
-
values
public static SimpleFileServer.OutputLevel[] values()この列挙クラスの定数を含む配列を宣言されている順序で 返します。- 戻り値:
- この列挙クラスの定数を宣言されている順序で含む配列
-
valueOf
public static SimpleFileServer.OutputLevel valueOf(String name) 指定された名前を持つこのクラスのenum定数を返します。 文字列は、このクラスでenum定数を宣言するために使用される識別子と正確に一致する必要があります。 (不適切な空白文字は許可されません。)- パラメータ:
name
- 返される列挙型定数の名前。- 戻り値:
- 指定された名前を持つ列挙型定数
- 例外:
IllegalArgumentException
- この列挙型クラスに指定された名前の定数がない場合NullPointerException
- 引数がnullの場合
-