public class Server extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
static Server |
getInstance() |
int |
getPort() |
String |
getWelcome() |
boolean |
isAcceptForeignIp() |
boolean |
isStarted() |
void |
setAcceptForeignIp(boolean acceptForeignIp) |
void |
setHost(String host) |
void |
setPort(int port) |
void |
setWelcome(String welcome)
welcome message
|
void |
start()
start server, bind port
|
void |
stop()
close server
|
public static final Server getInstance()
public void setWelcome(String welcome)
public int getPort()
public void stop()
public String getHost()
public void setHost(String host)
public void setPort(int port)
public boolean isAcceptForeignIp()
public void setAcceptForeignIp(boolean acceptForeignIp)
public String getWelcome()
public boolean isStarted()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.