public class HttpServer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
awaitTermination(long timeout,
TimeUnit timeUnit) |
InetAddress |
getInetAddress() |
int |
getLocalPort() |
void |
shutdown(long gracePeriod,
TimeUnit timeUnit) |
void |
start() |
void |
stop() |
public InetAddress getInetAddress()
public int getLocalPort()
public void start()
throws IOException
IOExceptionpublic void stop()
public void awaitTermination(long timeout,
TimeUnit timeUnit)
throws InterruptedException
InterruptedExceptionpublic void shutdown(long gracePeriod,
TimeUnit timeUnit)
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.