Class TermServer
- java.lang.Object
-
- io.vertx.mutiny.ext.shell.term.TermServer
-
public class TermServer extends Object
A server for terminal based applications. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<TermServer>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description TermServer(io.vertx.ext.shell.term.TermServer delegate)
TermServer(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
actualPort()
TermServer
authenticationProvider(AuthenticationProvider provider)
TermServer
authProvider(AuthProvider provider)
Deprecated.SeeauthenticationProvider(AuthenticationProvider)
Set an auth provider to use, any provider configured in options will override this provider.io.smallrye.mutiny.Uni<Void>
close()
Likeclose()
but supplying a handler that will be notified when close is complete.Void
closeAndAwait()
Blocking variant ofclose()
.void
closeAndForget()
Variant ofclose()
that ignores the result of the operation.static TermServer
createHttpTermServer(Vertx vertx)
static TermServer
createHttpTermServer(Vertx vertx, io.vertx.ext.shell.term.HttpTermOptions options)
static TermServer
createHttpTermServer(Vertx vertx, Router router)
static TermServer
createHttpTermServer(Vertx vertx, Router router, io.vertx.ext.shell.term.HttpTermOptions options)
static TermServer
createSSHTermServer(Vertx vertx)
static TermServer
createSSHTermServer(Vertx vertx, io.vertx.ext.shell.term.SSHTermOptions options)
static TermServer
createTelnetTermServer(Vertx vertx)
static TermServer
createTelnetTermServer(Vertx vertx, io.vertx.ext.shell.term.TelnetTermOptions options)
boolean
equals(Object o)
io.vertx.ext.shell.term.TermServer
getDelegate()
int
hashCode()
io.smallrye.mutiny.Uni<Void>
listen()
Bind the term server, thetermHandler(java.util.function.Consumer<io.vertx.mutiny.ext.shell.term.Term>)
must be set before.Void
listenAndAwait()
Blocking variant oflisten()
.TermServer
listenAndForget()
Variant oflisten()
that ignores the result of the operation.static TermServer
newInstance(io.vertx.ext.shell.term.TermServer arg)
TermServer
termHandler(Consumer<Term> handler)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<TermServer> __TYPE_ARG
-
-
Constructor Detail
-
TermServer
public TermServer(io.vertx.ext.shell.term.TermServer delegate)
-
TermServer
public TermServer(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.shell.term.TermServer getDelegate()
-
createSSHTermServer
public static TermServer createSSHTermServer(Vertx vertx)
- Parameters:
vertx
- the vertx instance- Returns:
- the term server
-
createSSHTermServer
public static TermServer createSSHTermServer(Vertx vertx, io.vertx.ext.shell.term.SSHTermOptions options)
- Parameters:
vertx
- the vertx instanceoptions
- the ssh options- Returns:
- the term server
-
createTelnetTermServer
public static TermServer createTelnetTermServer(Vertx vertx)
- Parameters:
vertx
- the vertx instance- Returns:
- the term server
-
createTelnetTermServer
public static TermServer createTelnetTermServer(Vertx vertx, io.vertx.ext.shell.term.TelnetTermOptions options)
- Parameters:
vertx
- the vertx instanceoptions
- the term options- Returns:
- the term server
-
createHttpTermServer
public static TermServer createHttpTermServer(Vertx vertx)
- Parameters:
vertx
- the vertx instance- Returns:
- the term server
-
createHttpTermServer
public static TermServer createHttpTermServer(Vertx vertx, io.vertx.ext.shell.term.HttpTermOptions options)
- Parameters:
vertx
- the vertx instanceoptions
- the term options- Returns:
- the term server
-
createHttpTermServer
public static TermServer createHttpTermServer(Vertx vertx, Router router)
- Parameters:
vertx
- the vertx instancerouter
- the router- Returns:
- the term server
-
createHttpTermServer
public static TermServer createHttpTermServer(Vertx vertx, Router router, io.vertx.ext.shell.term.HttpTermOptions options)
- Parameters:
vertx
- the vertx instancerouter
- the routeroptions
- the term options- Returns:
- the term server
-
termHandler
public TermServer termHandler(Consumer<Term> handler)
- Parameters:
handler
- the term handler- Returns:
-
authProvider
@Deprecated public TermServer authProvider(AuthProvider provider)
Deprecated.SeeauthenticationProvider(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
-
authenticationProvider
public TermServer authenticationProvider(AuthenticationProvider provider)
- Parameters:
provider
- the auth to use- Returns:
- this object
-
listen
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> listen()
Bind the term server, thetermHandler(java.util.function.Consumer<io.vertx.mutiny.ext.shell.term.Term>)
must be set before.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
listenAndAwait
public Void listenAndAwait()
Blocking variant oflisten()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
listenAndForget
public TermServer listenAndForget()
Variant oflisten()
that ignores the result of the operation.This method subscribes on the result of
listen()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlisten()
but you don't need to compose it with other operations.- Returns:
- the instance of TermServer to chain method calls.
-
actualPort
public int actualPort()
- Returns:
- the actual port the server is listening on.
-
close
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> close()
Likeclose()
but supplying a handler that will be notified when close is complete.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
public Void closeAndAwait()
Blocking variant ofclose()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
closeAndForget
public void closeAndForget()
-
newInstance
public static TermServer newInstance(io.vertx.ext.shell.term.TermServer arg)
-
-