public interface SimpleServer extends Closeable
Modifier and Type | Method and Description |
---|---|
int |
getPort()
The port the server is listening to for incomming HTTP connections.
|
boolean |
isDebug()
If this is true then very low level I/O operations are logged.
|
void |
setDebug(boolean enable)
To enable very low level logging this can be enabled.
|
int getPort()
boolean isDebug()
There is a minimal performance penalty if this is enabled and it is perfectly suited to being enabled in a production environment, at the cost of logging overhead.
void setDebug(boolean enable)
enable
- if true debug tracing will be enabledCopyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.