APIdia Launch Partner
Top Description Methods
com.sun.net.httpserver

public Interface HttpHandler

Known Direct Implementers
sun.net.httpserver.ServerImpl.Exchange.LinkHandler, sun.net.httpserver.simpleserver.FileServerHandler
Imports
java.io.IOException

A handler which is invoked to process HTTP exchanges. Each HTTP exchange is handled by one of these handlers.
Since
1.6

Method Summary

Modifier and TypeMethod and Description
public void
handle(HttpExchange
the exchange containing the request from the client and used to send the response
exchange
)

Handle the given request and generate an appropriate response.

Method Detail

handleback to summary
public void handle(HttpExchange exchange) throws IOException

Handle the given request and generate an appropriate response. See HttpExchange for a description of the steps involved in handling an exchange.

Parameters
exchange:HttpExchange

the exchange containing the request from the client and used to send the response

Exceptions
IOException:
if an I/O error occurs
NullPointerException:
if exchange is null