Interface Context

  • All Superinterfaces:
    org.aesh.readline.AeshContext
    All Known Implementing Classes:
    ContextImpl, KubernetesContext

    public interface Context
    extends org.aesh.readline.AeshContext
    Context.
    Since:
    5.2
    Author:
    Tristan Tarrant
    • Method Detail

      • getConfigPath

        Path getConfigPath()
      • isConnected

        boolean isConnected()
      • setProperty

        void setProperty​(String key,
                         String value)
      • resetProperties

        void resetProperties()
      • saveProperties

        void saveProperties()
      • connect

        Connection connect​(org.aesh.command.shell.Shell shell,
                           String connectionString)
        Connects to a server
        Parameters:
        shell -
        connectionString -
        Returns:
      • connect

        Connection connect​(org.aesh.command.shell.Shell shell,
                           String connectionString,
                           String username,
                           String password)
        Connect to a server using the supplied username and password
        Parameters:
        shell -
        connectionString -
        username -
        password -
        Returns:
      • setRegistry

        void setRegistry​(org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation> registry)
      • disconnect

        void disconnect()
        Disconnects from the server
      • setConsole

        void setConsole​(org.aesh.readline.ReadlineConsole console)
      • getRegistry

        org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation> getRegistry()
      • getEncoding

        org.infinispan.commons.dataconversion.MediaType getEncoding()
      • setEncoding

        void setEncoding​(org.infinispan.commons.dataconversion.MediaType encoding)
      • refreshPrompt

        void refreshPrompt()
      • changeResource

        org.aesh.command.CommandResult changeResource​(Class<? extends Resource> fromResource,
                                                      String resourceType,
                                                      String name)
                                               throws org.aesh.command.CommandException
        Throws:
        org.aesh.command.CommandException