|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.ssh.ShellEnvironment
This class helps the Shell class to determine information about a remote
SshClient's environment.
| Field Summary | |
static int |
OS_AIX
AIX operating system |
static int |
OS_DARWIN
Darwin (MAC) operating system |
static int |
OS_FREEBSD
FreeBSD operating system |
static int |
OS_LINUX
Linux operating system |
static int |
OS_NETBSD
NetBSD operating system |
static int |
OS_OPENBSD
OpenBSD operating system |
static int |
OS_SOLARIS
Solaris operating system |
static int |
OS_UNKNOWN
The operating system is unknown |
static int |
OS_WINDOWS
Windows operating system |
| Constructor Summary | |
ShellEnvironment(int osType)
|
|
ShellEnvironment(java.lang.String osDescription)
|
|
| Method Summary | |
java.lang.String |
getEnvironmentVariable(java.lang.String name)
Get an environment variable value from the remote shell. |
java.util.Properties |
getEnvironmentVariables()
|
java.lang.String |
getEOL()
Get the EOL type expected by the remote shell for a complete carriage return. |
java.lang.String |
getOperatingSystem()
Returns a descriptive representation of the operating system. |
int |
getOSType()
Identifies the operating system type using one of the final static integer values of this class. |
boolean |
hasEnvironmentVariable(java.lang.String name)
Check to see if the shell has a variable set |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OS_WINDOWS
public static final int OS_LINUX
public static final int OS_SOLARIS
public static final int OS_AIX
public static final int OS_DARWIN
public static final int OS_FREEBSD
public static final int OS_OPENBSD
public static final int OS_NETBSD
public static final int OS_UNKNOWN
| Constructor Detail |
public ShellEnvironment(int osType)
public ShellEnvironment(java.lang.String osDescription)
| Method Detail |
public java.util.Properties getEnvironmentVariables()
public int getOSType()
public java.lang.String getOperatingSystem()
public java.lang.String getEnvironmentVariable(java.lang.String name)
name - String
public boolean hasEnvironmentVariable(java.lang.String name)
name - String
public java.lang.String getEOL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||