Interface TermServer
-
Method Summary
Modifier and TypeMethodDescriptionintThe actual port the server is listening on.authenticationProvider(AuthenticationProvider provider) Set an auth provider to use, any provider configured in options will override this provider.close()Close the server.static TermServercreateHttpTermServer(Vertx vertx) Create a term server for the HTTP protocol.static TermServercreateHttpTermServer(Vertx vertx, HttpTermOptions options) Create a term server for the HTTP protocol.static TermServercreateHttpTermServer(Vertx vertx, Router router) Create a term server for the HTTP protocol, using an existing router.static TermServercreateHttpTermServer(Vertx vertx, Router router, HttpTermOptions options) Create a term server for the HTTP protocol, using an existing router.static TermServercreateSSHTermServer(Vertx vertx) Create a term server for the SSH protocol.static TermServercreateSSHTermServer(Vertx vertx, SSHTermOptions options) Create a term server for the SSH protocol.static TermServercreateTelnetTermServer(Vertx vertx) Create a term server for the Telnet protocol.static TermServercreateTelnetTermServer(Vertx vertx, TelnetTermOptions options) Create a term server for the Telnet protocol.listen()Bind the term server, thetermHandler(Handler)must be set before.termHandler(Handler<Term> handler) Set the term handler that will receive incoming client connections.
-
Method Details
-
createSSHTermServer
Create a term server for the SSH protocol.- Parameters:
vertx- the vertx instance- Returns:
- the term server
-
createSSHTermServer
Create a term server for the SSH protocol.- Parameters:
vertx- the vertx instanceoptions- the ssh options- Returns:
- the term server
-
createTelnetTermServer
Create a term server for the Telnet protocol.- Parameters:
vertx- the vertx instance- Returns:
- the term server
-
createTelnetTermServer
Create a term server for the Telnet protocol.- Parameters:
vertx- the vertx instanceoptions- the term options- Returns:
- the term server
-
createHttpTermServer
Create a term server for the HTTP protocol.- Parameters:
vertx- the vertx instance- Returns:
- the term server
-
createHttpTermServer
Create a term server for the HTTP protocol.- Parameters:
vertx- the vertx instanceoptions- the term options- Returns:
- the term server
-
createHttpTermServer
Create a term server for the HTTP protocol, using an existing router.- Parameters:
vertx- the vertx instancerouter- the router- Returns:
- the term server
-
createHttpTermServer
Create a term server for the HTTP protocol, using an existing router.- Parameters:
vertx- the vertx instancerouter- the routeroptions- the term options- Returns:
- the term server
-
termHandler
Set the term handler that will receive incoming client connections. When a remote terminal connects thehandlerwill be called with theTermwhich can be used to interact with the remote terminal.- Parameters:
handler- the term handler- Returns:
- this object
-
authenticationProvider
Set an auth provider to use, any provider configured in options will override this provider. This should be used when a custom auth provider should be used.- Parameters:
provider- the auth to use- Returns:
- this object
-
listen
Bind the term server, thetermHandler(Handler)must be set before.- Returns:
- this object
-
actualPort
int actualPort()The actual port the server is listening on. This is useful if you bound the server specifying 0 as port number signifying an ephemeral port- Returns:
- the actual port the server is listening on.
-
close
-