com.sun.net.httpserver |
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers. |
Java Source File Name | Type | Comment |
Authenticator.java | Class | Authenticator represents an implementation of an HTTP authentication
mechanism. |
BasicAuthenticator.java | Class | BasicAuthenticator provides an implementation of HTTP Basic
authentication. |
Filter.java | Class | A filter used to pre- and post-process incoming requests. |
Headers.java | Class | HTTP request and response headers are represented by this class which implements
the interface
java.util.Map <
java.lang.String ,
java.util.List <
java.lang.String >>.
The keys are case-insensitive Strings representing the header names and
the value associated with each key is a
List <
String > with one
element for each occurence of the header name in the request or response.
For example, if a response header instance contains one key "HeaderName" with two values "value1 and value2"
then this object is output as two header lines:
HeaderName: value1
HeaderName: value2
All the normal
java.util.Map methods are provided, but the following
additional convenience methods are most likely to be used:
All methods in this class accept null values for keys and values. |
HttpContext.java | Class | HttpContext represents a mapping between the root URI path of an application
to a
HttpHandler which is invoked to handle requests destined
for that path on the associated HttpServer or HttpsServer.
HttpContext instances are created by the create methods in HttpServer
and HttpsServer
A chain of
Filter objects can be added to a HttpContext. |
HttpExchange.java | Class | This class encapsulates a HTTP request received and a
response to be generated in one exchange. |
HttpHandler.java | Interface | A handler which is invoked to process HTTP exchanges. |
HttpPrincipal.java | Class | Represents a user authenticated by HTTP Basic or Digest
authentication. |
HttpsConfigurator.java | Class | This class is used to configure the https parameters for each incoming
https connection on a HttpsServer. |
HttpServer.java | Class | This class implements a simple HTTP server. |
HttpsExchange.java | Class | This class encapsulates a HTTPS request received and a
response to be generated in one exchange and defines
the extensions to HttpExchange that are specific to the HTTPS protocol. |
HttpsParameters.java | Class | Represents the set of parameters for each https
connection negotiated with clients. |
HttpsServer.java | Class | This class is an extension of
HttpServer which provides
support for HTTPS. |
package-info.java | | |