| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| public static final String | |
| public static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| pack-priv static void | |
| pack-priv static void | |
| private static void |
| DEFAULT_ENHANCED_EXCEP | back to summary |
|---|---|
| private static final String DEFAULT_ENHANCED_EXCEP | |
| DEFAULT_JWEBSERVER_MAX_CONNECTIONS | back to summary |
|---|---|
| private static final String DEFAULT_JWEBSERVER_MAX_CONNECTIONS | |
| MAXREQTIME_KEY | back to summary |
|---|---|
| public static final String MAXREQTIME_KEY | |
| MAXREQTIME_VAL | back to summary |
|---|---|
| public static final String MAXREQTIME_VAL | |
| SYS_PROP_ENHANCED_EXCEP | back to summary |
|---|---|
| private static final String SYS_PROP_ENHANCED_EXCEP | |
| SYS_PROP_MAX_CONNECTIONS | back to summary |
|---|---|
| private static final String SYS_PROP_MAX_CONNECTIONS | |
| JWebServer | back to summary |
|---|---|
| private JWebServer() This constructor should never be called. | |
| main | back to summary |
|---|---|
| public static void main(String... args) The main entry point. The command line arguments are parsed and the server is started. If started successfully, the server will run on a new non-daemon thread, and this method will return. Otherwise, if the server is not started successfully, e.g. an error is encountered while parsing the arguments or an I/O error occurs, the server is not started and this method invokes System::exit with an appropriate exit code. If the system property "sun.net.httpserver.maxReqTime" has not been set by the user, it is set to a value of 5 seconds. This is to prevent the server from hanging indefinitely, for example in the case of an HTTPS request.
| |
| setEnhancedExceptions | back to summary |
|---|---|
| pack-priv static void setEnhancedExceptions() | |
| setMaxConnectionsIfNotSet | back to summary |
|---|---|
| pack-priv static void setMaxConnectionsIfNotSet() | |
| setMaxReqTime | back to summary |
|---|---|
| private static void setMaxReqTime() | |