Constructor and Description |
---|
HttpServer(Responder responder,
org.eclipse.jetty.server.ConnectionFactory connectionFactory,
String bindAddress,
int port)
Constructs a server to run with the given ConnectionFactory on the given
address/port.
|
HttpServer(Responder responder,
org.eclipse.jetty.server.Connector connector)
Deprecated.
- use the Constructors that take a ConnectionFactory
|
HttpServer(Responder responder,
InetSocketAddress addr)
Constructs a server to run on the named port on the specified address.
|
HttpServer(Responder responder,
int port)
Constructs a server to run on the named port.
|
HttpServer(ResponderServlet servlet,
org.eclipse.jetty.server.ConnectionFactory connectionFactory,
String bindAddress,
int port)
Constructs a server to run with the given ConnectionFactory on the given
address/port.
|
HttpServer(ResponderServlet servlet,
org.eclipse.jetty.server.Connector connector)
Deprecated.
- use the Constructors that take a ConnectionFactory
|
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.eclipse.jetty.server.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
IOException
public HttpServer(ResponderServlet servlet, int port) throws IOException
IOException
public HttpServer(Responder responder, InetSocketAddress addr) throws IOException
IOException
public HttpServer(Responder responder, String bindAddress, int port) throws IOException
IOException
public HttpServer(ResponderServlet servlet, String bindAddress, int port) throws IOException
IOException
public HttpServer(Responder responder, org.eclipse.jetty.server.ConnectionFactory connectionFactory, String bindAddress, int port) throws IOException
IOException
public HttpServer(ResponderServlet servlet, org.eclipse.jetty.server.ConnectionFactory connectionFactory, String bindAddress, int port) throws IOException
IOException
@Deprecated public HttpServer(ResponderServlet servlet, org.eclipse.jetty.server.Connector connector) throws IOException
IOException
@Deprecated public HttpServer(Responder responder, org.eclipse.jetty.server.Connector connector) throws IOException
IOException
public void addConnector(org.eclipse.jetty.server.Connector connector)
public int getPort()
Server
public void close()
Server
public void start()
start
in interface Server
AvroRuntimeException
- if the underlying Jetty server throws any
exception while starting.public void join() throws InterruptedException
Server
join
in interface Server
InterruptedException
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.