HttpServer and associated classes. Applications do not normally use
this class. See provider() for how providers are found and loaded.
| Modifier and Type | Field and Description |
|---|---|
| private static final Object | |
| private static HttpServerProvider |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract HttpServer | Returns: An instance of HttpServerthe address to bind to. May be addr, int nullthe socket backlog. A value of backlog)zero means the systems defaultcreates a HttpServer from this provider |
| public abstract HttpsServer | Returns: An instance of HttpServerthe address to bind to. May be addr, int nullthe socket backlog. A value of backlog)zero means the systems defaultcreates a HttpsServer from this provider |
| private static boolean | |
| private static boolean | |
| public static HttpServerProvider | Returns: The system-wide default HttpServerProviderReturns the system wide default HttpServerProvider for this invocation of the Java virtual machine. |
| lock | back to summary |
|---|---|
| private static final Object lock | |
| provider | back to summary |
|---|---|
| private static HttpServerProvider provider | |
| HttpServerProvider | back to summary |
|---|---|
| protected HttpServerProvider() Initializes a new instance of this class. | |
| createHttpServer | back to summary |
|---|---|
| public abstract HttpServer createHttpServer(InetSocketAddress addr, int backlog) throws IOException creates a HttpServer from this provider
| |
| createHttpsServer | back to summary |
|---|---|
| public abstract HttpsServer createHttpsServer(InetSocketAddress addr, int backlog) throws IOException creates a HttpsServer from this provider
| |
| loadProviderAsService | back to summary |
|---|---|
| private static boolean loadProviderAsService() | |
| loadProviderFromProperty | back to summary |
|---|---|
| private static boolean loadProviderFromProperty() | |
| provider | back to summary |
|---|---|
| public static HttpServerProvider provider() Returns the system wide default HttpServerProvider for this invocation of the Java virtual machine. The first invocation of this method locates the default provider object as follows:
Subsequent invocations of this method return the provider that was returned by the first invocation.
| |