public class Server extends Object
| Modifier and Type | Method and Description |
|---|---|
static Server |
getInstance() |
int |
getPort() |
String |
getWelcome() |
boolean |
isAcceptForeignIp() |
boolean |
isStarted() |
void |
setAcceptForeignIp(boolean acceptForeignIp) |
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 void setPort(int port)
public boolean isAcceptForeignIp()
public void setAcceptForeignIp(boolean acceptForeignIp)
public String getWelcome()
public boolean isStarted()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.