|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.remote.RemoteAdminCommand
com.sun.enterprise.admin.cli.remote.RemoteCommand.CLIRemoteAdminCommand
private class RemoteCommand.CLIRemoteAdminCommand
A special RemoteAdminCommand that overrides methods so that we can handle the interactive requirements of a CLI command.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.admin.remote.RemoteAdminCommand |
|---|
authToken, host, logger, name, operands, options, output, password, port, prohibitDirectoryUploads, secure, user |
| Constructor Summary | |
|---|---|
RemoteCommand.CLIRemoteAdminCommand(java.lang.String name,
java.lang.String host,
int port,
boolean secure,
java.lang.String user,
java.lang.String password,
java.util.logging.Logger logger,
java.lang.String authToken)
Construct a new remote command object. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getFromEnvironment(java.lang.String name)
Get from environment. |
protected java.lang.String |
reportAuthenticationException()
Return the error message to be used in the AuthenticationException. |
protected boolean |
retryUsingSecureConnection(java.lang.String host,
int port)
Called when a non-secure connection attempt fails and it appears that the server requires a secure connection. |
protected boolean |
updateAuthentication()
If we're interactive, prompt for a new username and password. |
| Methods inherited from class com.sun.enterprise.admin.remote.RemoteAdminCommand |
|---|
addAdditionalHeaders, authenticationInfo, executeCommand, getAttributes, getCommandModel, getHttpConnectorAddress, getReadTimeout, getUsage, headers, setCommandModel, setConnectTimeout, setFileOutputDirectory, setInteractive, setReadTimeout, setResponseFormatType, setUserOut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteCommand.CLIRemoteAdminCommand(java.lang.String name,
java.lang.String host,
int port,
boolean secure,
java.lang.String user,
java.lang.String password,
java.util.logging.Logger logger,
java.lang.String authToken)
throws CommandException
CommandException| Method Detail |
|---|
protected boolean updateAuthentication()
updateAuthentication in class RemoteAdminCommandprotected java.lang.String getFromEnvironment(java.lang.String name)
getFromEnvironment in class RemoteAdminCommand
protected boolean retryUsingSecureConnection(java.lang.String host,
int port)
retryUsingSecureConnection in class RemoteAdminCommandprotected java.lang.String reportAuthenticationException()
reportAuthenticationException in class RemoteAdminCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||