クラス
com.sun.net.httpserver.HttpExchangeの使用
HttpExchangeを使用するパッケージ
-
com.sun.net.httpserverでのHttpExchangeの使用
修飾子と型クラス説明classこのクラスは、受信したHTTPSリクエストと、ある交換で生成されるレスポンスをカプセル化し、HTTPSプロトコルに固有のHttpExchangeの拡張機能を定義します。型HttpExchangeのパラメータを持つcom.sun.net.httpserverのメソッド修飾子と型メソッド説明abstract Authenticator.ResultAuthenticator.authenticate(HttpExchange exch) 各着信リクエストを認証するために呼び出されます。BasicAuthenticator.authenticate(HttpExchange t) voidFilter.Chain.doFilter(HttpExchange exchange) チェーン内の次のフィルタをコールするか、チェーン内の最後のフィルタの場合はユーザー交換ハンドラをコールします。abstract voidFilter.doFilter(HttpExchange exchange, Filter.Chain chain) このフィルタに対し、指定された交換の事前処理または事後処理を要求します。voidHttpHandler.handle(HttpExchange exchange) 指定された要求を処理し、適切な応答を生成します。型HttpExchangeの型引数を持つcom.sun.net.httpserverのメソッド・パラメータ修飾子と型メソッド説明static FilterFilter.afterHandler(String description, Consumer<HttpExchange> operation) 指定された説明および操作を含む後処理Filterを返します。static FilterFilter.beforeHandler(String description, Consumer<HttpExchange> operation) 指定された説明および操作を含む前処理Filterを返します。