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 Details

    • getConfigPath

      Path getConfigPath()
    • isConnected

      boolean isConnected()
    • setProperty

      void setProperty(String key, String value)
    • getProperty

      String getProperty(String key)
    • getProperty

      String getProperty(Context.Property property)
    • getProperties

      Properties getProperties()
    • resetProperties

      void resetProperties()
    • saveProperties

      void saveProperties()
    • setSslContext

      void setSslContext(SSLContextSettings sslContext)
    • 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)
    • getConnection

      Connection getConnection()
      Returns the current Connection
      Returns:
    • 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