Class StandardEnvironment

    • Field Detail

      • env

        private final java.util.Map<java.lang.String,​java.lang.String> env
      • ptyModes

        private final java.util.Map<PtyMode,​java.lang.Integer> ptyModes
    • Constructor Detail

      • StandardEnvironment

        public StandardEnvironment()
    • Method Detail

      • getEnv

        public java.util.Map<java.lang.String,​java.lang.String> getEnv()
        Description copied from interface: Environment
        Retrieve the environment map
        Specified by:
        getEnv in interface Environment
        Returns:
        the environment Map - never null
      • getPtyModes

        public java.util.Map<PtyMode,​java.lang.Integer> getPtyModes()
        Description copied from interface: Environment
        Retrieve the PTY modes settings
        Specified by:
        getPtyModes in interface Environment
        Returns:
        the Map of PtyModes - never null
      • signal

        public void signal​(Channel channel,
                           Signal signal)
      • set

        public void set​(java.lang.String key,
                        java.lang.String value)
        Adds a variable to the environment. This method is called set according to the name of the appropriate posix command set
        Parameters:
        key - environment variable name - never null/empty
        value - environment variable value
      • getSignalListeners

        protected java.util.Collection<SignalListener> getSignalListeners​(Signal signal,
                                                                          boolean create)
        Retrieves the set of listeners registered for a signal
        Parameters:
        signal - The specified Signal
        create - If true and no current listeners are mapped then creates a new Collection
        Returns:
        The Collection of listeners registered for the signal - may be null in case create is false
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object