The internal type of the Java wrapped class.
The internal type of the Java wrapped class.
The internal instance of the Java wrapped class.
The internal instance of the Java wrapped class.
Close this org.vertx.scala.core.Closeable instance asynchronously and notifies the handler once done.
Close this org.vertx.scala.core.Closeable instance asynchronously and notifies the handler once done.
Close this org.vertx.scala.core.Closeable instance asynchronously.
Close this org.vertx.scala.core.Closeable instance asynchronously.
The accept backlog
Get the key store password
Get the key store path
Get the maximum websocket frame size in bytes.
The receive buffer size
The send buffer size
the value of TCP so linger
the value of traffic class
Get trust store password
Get the trust store path
Is client auth required?
Is client auth required?
Returns true
if the org.vertx.scala.core.http.HttpServer should compress the http response if the connected client supports it.
The value of reuse address
Is SSL enabled?
true if TCP keep alive is enabled
true if Nagle's algorithm is disabled.
true
if pooled buffers are used
Tell the server to start listening on all available interfaces and port port
.
Tell the server to start listening on all available interfaces and port port
. Be aware this is an
async operation and the server may not bound on return of the method.
The port to listen on.
Tell the server to start listening on all available interfaces and port port
.
Tell the server to start listening on all available interfaces and port port
.
The port to listen on.
Callback when bind is done.
Tell the server to start listening on port port
and hostname or ip address given by host
.
Tell the server to start listening on port port
and hostname or ip address given by host
. Be aware this is an
async operation and the server may not bound on return of the method.
The port to listen on.
The hostname or ip address.
Tell the server to start listening on port port} and hostname or ip address given by
host}.
Tell the server to start listening on port port} and hostname or ip address given by
host}.
The port to listen on.
The hostname or ip address.
Callback when bind is done.
Set the request handler for the server to requestHandler
.
Set the request handler for the server to requestHandler
. As HTTP requests are received by the server,
instances of org.vertx.scala.core.http.HttpServerRequest will be created and passed to this handler.
a reference to this, so methods can be chained.
Get the request handler.
Get the request handler.
The request handler.
Set the accept backlog
Set the accept backlog
a reference to this so multiple method calls can be chained together
Set required
to true if you want the server to request client authentication from any connecting clients.
Set required
to true if you want the server to request client authentication from any connecting clients. This
is an extra level of security in SSL, and requires clients to provide client certificates. Those certificates must be added
to the server trust store.
A reference to this, so multiple invocations can be chained together.
Set if the org.vertx.scala.core.http.HttpServer should compress the http response if the connected client supports it.
Set the password for the SSL key store.
Set the password for the SSL key store. This method should only be used in SSL mode, i.e. after
org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
A reference to this, so multiple invocations can be chained together.
Set the path to the SSL key store.
Set the path to the SSL key store. This method should only be used in SSL
mode, i.e. after org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
The SSL key store is a standard Java Key Store, and will contain the client certificate. Client certificates are only required if the server requests client authentication.
A reference to this, so multiple invocations can be chained together.
Sets the maximum websocket frame size in bytes.
Sets the maximum websocket frame size in bytes. Default is 65536 bytes.
The size in bytes
Set the receive buffer size for connections created by this instance to size
in bytes.
Set the receive buffer size for connections created by this instance to size
in bytes.
a reference to this so multiple method calls can be chained together
Set the reuseAddress setting for connections created by this instance to reuse
.
Set the reuseAddress setting for connections created by this instance to reuse
.
a reference to this so multiple method calls can be chained together
If ssl
is true
, this signifies that any connections will be SSL connections.
If ssl
is true
, this signifies that any connections will be SSL connections.
A reference to this, so multiple invocations can be chained together.
Set the send buffer size for connections created by this instance to size
in bytes.
Set the send buffer size for connections created by this instance to size
in bytes.
a reference to this so multiple method calls can be chained together
Set the TCP soLinger setting for connections created by this instance to linger
.
Set the TCP soLinger setting for connections created by this instance to linger
.
Using a negative value will disable soLinger.
a reference to this so multiple method calls can be chained together
Set the TCP keepAlive setting for connections created by this instance to keepAlive
.
Set the TCP keepAlive setting for connections created by this instance to keepAlive
.
a reference to this so multiple method calls can be chained together
If tcpNoDelay
is set to true
then Nagle's algorithm
will turned off for the TCP connections created by this instance.
If tcpNoDelay
is set to true
then Nagle's algorithm
will turned off for the TCP connections created by this instance.
a reference to this so multiple method calls can be chained together
Set the trafficClass setting for connections created by this instance to trafficClass
.
Set the trafficClass setting for connections created by this instance to trafficClass
.
a reference to this so multiple method calls can be chained together
Set the password for the SSL trust store.
Set the password for the SSL trust store. This method should only be used in SSL mode, i.e. after
org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
A reference to this, so multiple invocations can be chained together.
Set the path to the SSL trust store.
Set the path to the SSL trust store. This method should only be used in SSL mode, i.e. after
org.vertx.scala.core.SSLSupport.setSSL(boolean) has been set to true
.
The trust store is a standard Java Key Store, and should contain the certificates of any servers that the client trusts.
A reference to this, so multiple invocations can be chained together.
Set if vertx should use pooled buffers for performance reasons.
Set if vertx should use pooled buffers for performance reasons. Doing so will give the best throughput but may need a bit higher memory footprint.
a reference to this so multiple method calls can be chained together
Set the websocket handler for the server to wsHandler
.
Set the websocket handler for the server to wsHandler
. If a websocket connect handshake is successful a
new org.vertx.scala.core.http.ServerWebSocket instance will be created and passed to the handler.
a reference to this, so methods can be chained.
Get the websocket handler
Get the websocket handler
The websocket handler
Helper method wrapping invocations and returning the Scala type, once again to help provide fluent return types
Helper method wrapping invocations and returning the Scala type, once again to help provide fluent return types
An HTTP and WebSockets server
If an instance is instantiated from an event loop then the handlers of the instance will always be called on that same event loop. If an instance is instantiated from some other arbitrary Java thread then an event loop will be assigned to the instance and used when any of its handlers are called.
Instances of HttpServer are thread-safe.