| Constructor and Description |
|---|
HttpServer(Responder responder,
org.mortbay.jetty.Connector connector)
Constructs a server to run with the given connector.
|
HttpServer(Responder responder,
int port)
Constructs a server to run on the named port.
|
HttpServer(ResponderServlet servlet,
org.mortbay.jetty.Connector connector)
Constructs a server to run with the given connector.
|
HttpServer(ResponderServlet servlet,
int port)
Constructs a server to run on the named port.
|
HttpServer(ResponderServlet servlet,
String bindAddress,
int port)
Constructs a server to run on the named port on the specified address.
|
HttpServer(Responder responder,
String bindAddress,
int port)
Constructs a server to run on the named port on the specified address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(org.mortbay.jetty.Connector connector) |
void |
close()
Stop this server.
|
int |
getPort()
The port this server runs on.
|
void |
join()
Wait for this server to exit.
|
void |
start()
Start the server.
|
public HttpServer(Responder responder, int port) throws IOException
IOExceptionpublic HttpServer(ResponderServlet servlet, int port) throws IOException
IOExceptionpublic HttpServer(Responder responder, String bindAddress, int port) throws IOException
IOExceptionpublic HttpServer(ResponderServlet servlet, String bindAddress, int port) throws IOException
IOExceptionpublic HttpServer(Responder responder, org.mortbay.jetty.Connector connector) throws IOException
IOExceptionpublic HttpServer(ResponderServlet servlet, org.mortbay.jetty.Connector connector) throws IOException
IOExceptionpublic void addConnector(org.mortbay.jetty.Connector connector)
public int getPort()
Serverpublic void close()
Serverpublic void start()
start in interface ServerAvroRuntimeException - if the underlying Jetty server
throws any exception while starting.public void join()
throws InterruptedException
Serverjoin in interface ServerInterruptedExceptionCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.