Class StandardEnvironment
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.server.StandardEnvironment
- All Implemented Interfaces:
Environment
public class StandardEnvironment
extends org.apache.sshd.common.util.logging.AbstractLoggingBean
implements Environment
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface Environment
ENV_COLUMNS, ENV_LINES, ENV_TERM, ENV_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSignalListener(SignalListener listener, Collection<org.apache.sshd.server.Signal> signals) Add a qualified listener for the specific signalsgetEnv()Retrieve the environment mapRetrieve the PTY modes settingsprotected Collection<SignalListener> getSignalListeners(org.apache.sshd.server.Signal signal, boolean create) Retrieves the set of listeners registered for a signalvoidremoveSignalListener(SignalListener listener) Remove a previously registered listener for all the signals it was registeredvoidAdds a variable to the environment.voidtoString()Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Environment
addSignalListener, addSignalListener
-
Constructor Details
-
StandardEnvironment
public StandardEnvironment()
-
-
Method Details
-
addSignalListener
public void addSignalListener(SignalListener listener, Collection<org.apache.sshd.server.Signal> signals) Description copied from interface:EnvironmentAdd a qualified listener for the specific signals- Specified by:
addSignalListenerin interfaceEnvironment- Parameters:
listener- theSignalListenerto registersignals- theSignals the listener is interested in
-
getEnv
Description copied from interface:EnvironmentRetrieve the environment map- Specified by:
getEnvin interfaceEnvironment- Returns:
- the environment
Map- nevernull
-
getPtyModes
Description copied from interface:EnvironmentRetrieve the PTY modes settings- Specified by:
getPtyModesin interfaceEnvironment- Returns:
- the
MapofPtyModes - nevernull
-
removeSignalListener
Description copied from interface:EnvironmentRemove a previously registered listener for all the signals it was registered- Specified by:
removeSignalListenerin interfaceEnvironment- Parameters:
listener- theSignalListenerto remove
-
signal
-
set
-
getSignalListeners
protected Collection<SignalListener> getSignalListeners(org.apache.sshd.server.Signal signal, boolean create) Retrieves the set of listeners registered for a signal- Parameters:
signal- The specifiedSignalcreate- Iftrueand no current listeners are mapped then creates a newCollection- Returns:
- The
Collectionof listeners registered for the signal - may benullin case create isfalse
-
toString
-