Class TermServer
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTermServer
(io.vertx.ext.shell.term.TermServer delegate) TermServer
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionint
authenticationProvider
(AuthenticationProvider provider) authProvider
(AuthProvider provider) Deprecated.io.smallrye.mutiny.Uni<Void>
close()
Likeclose()
but supplying a handler that will be notified when close is complete.Blocking variant ofclose()
.void
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
io.vertx.ext.shell.term.TermServer
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.Blocking variant oflisten()
.Variant oflisten()
that ignores the result of the operation.static TermServer
newInstance
(io.vertx.ext.shell.term.TermServer arg) termHandler
(Consumer<Term> handler) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
TermServer
public TermServer(io.vertx.ext.shell.term.TermServer delegate) -
TermServer
-
-
Method Details
-
getDelegate
public io.vertx.ext.shell.term.TermServer getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
createSSHTermServer
- 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
- 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
- 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
- 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
- Parameters:
handler
- the term handler- Returns:
-
authProvider
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
- Parameters:
provider
- the auth to use- Returns:
- this object
-
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
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
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
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
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
-
authenticationProvider(AuthenticationProvider)
Set an auth provider to use, any provider configured in options will override this provider.