public class HttpServerConfig extends Object
| Constructor and Description |
|---|
HttpServerConfig() |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
createInetSocketAddress()
Creates the InetSocketAddress to be user by the server.
|
String |
getHost()
The host on witch to start the http server, can be null witch means all ips will be allowed.
|
String |
getName()
The HTTP server name, by default it will be "Bridje HTTP Server" but you can change that setting this property.
|
int |
getPort()
The port on witch the HTTP server will listen for new connections.
|
void |
setHost(String host)
The host on witch to start the http server, can be null witch means all ips will be allowed.
|
void |
setName(String name)
The HTTP server name, by default it will be "Bridje HTTP Server" but you can change that setting this property.
|
void |
setPort(int port)
The port on witch the HTTP server will listen for new connections.
|
public String getHost()
public void setHost(String host)
host - The host for the HTTP server.public String getName()
public void setName(String name)
name - The name of the HTTP server.public int getPort()
public void setPort(int port)
port - The HTTP server portpublic InetSocketAddress createInetSocketAddress()
Copyright © 2015–2016 Bridje Framework. All rights reserved.