|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
interface ContactSSH
This interface represents a Contact of SSH Type As a SSH Session is specific to a contact, additional information needed to maintain its state with the remote server is present here
| Field Summary | |
|---|---|
static int |
CONVERSATION_MESSAGE_RECEIVED
An event type indicating that the message being received is a standard conversation message sent by another contact. |
static int |
SYSTEM_MESSAGE_RECEIVED
An event type indicting that the message being received is a system message being sent by the server or a system administrator. |
| Method Summary | |
|---|---|
void |
closeShellIO()
Closes the readers and writer associated with shell of this contact |
OperationSetFileTransfer |
getFileTransferOperationSet()
Returns the File Transfer operation set that this contact belongs to. |
String |
getHostName()
Returns the Hostname associated with this contact |
com.jcraft.jsch.JSch |
getJSch()
Returns the JSch Stack identified associated with this contact |
int |
getMessageType()
Return the type of message received from remote server |
OperationSetBasicInstantMessaging |
getParentBasicInstantMessagingOperationSet()
Returns the BasicInstant Messaging operation set that this contact belongs to. |
OperationSetPersistentPresence |
getParentPresenceOperationSet()
Returns the persistent presence operation set that this contact belongs to. |
String |
getPassword()
Returns the Password associated with this contact |
com.jcraft.jsch.Channel |
getShellChannel()
Returns the SSH Shell Channel associated with this contact |
InputStream |
getShellInputStream()
Returns the Input Stream associated with SSH Channel of this contact |
OutputStream |
getShellOutputStream()
Returns the Output Stream associated with SSH Channel of this contact |
InputStreamReader |
getShellReader()
Returns the BufferedReader associated with SSH Channel of this contact |
PrintWriter |
getShellWriter()
Returns the PrintWriter associated with SSH Channel of this contact |
SSHContactInfo |
getSSHConfigurationForm()
|
com.jcraft.jsch.Session |
getSSHSession()
Returns the SSH Session associated with this contact |
String |
getUserName()
Returns the Username associated with this contact |
void |
initializeShellIO(InputStream shellInputStream,
OutputStream shellOutputStream)
Initializes the reader and writers associated with shell of this contact |
boolean |
isCommandSent()
Returns true if a command has been sent whos reply was not received yet false otherwise |
boolean |
isConnectionInProgress()
Determines whether a connection to a remote server is already underway |
void |
savePersistentDetails()
Saves the details of contact in persistentData |
void |
sendLine(String message)
Sends a message a line to remote machine via the Shell Writer |
void |
setCommandSent(boolean commandSent)
Set the state of commandSent variable which determines whether a reply to a command sent is awaited |
void |
setConnectionInProgress(boolean connectionInProgress)
Sets the status of connection attempt to remote server |
void |
setJSch(com.jcraft.jsch.JSch jsch)
Sets the JSch Stack identified associated with this contact |
void |
setMessageType(int messageType)
Sets the type of message received from remote server |
void |
setParentGroup(ContactGroupSSHImpl newParentGroup)
This method is only called when the contact is added to a new ContactGroupSSHImpl by the ContactGroupSSHImpl itself. |
void |
setPassword(String password)
Sets the Password associated with this contact |
void |
setPersistent(boolean isPersistent)
Specifies whether or not this contact is being stored by the server. |
void |
setPersistentData(String persistentData)
Stores persistent data of the contact. |
void |
setPresenceStatus(PresenceStatus sshPresenceStatus)
Sets sshPresenceStatus as the PresenceStatus that this contact is currently in. |
void |
setResolved(boolean resolved)
Makes the contact resolved or unresolved. |
void |
setShellChannel(com.jcraft.jsch.Channel shellChannel)
Sets the SSH Shell channel associated with this contact |
void |
setSSHSession(com.jcraft.jsch.Session sshSession)
Sets the SSH Session associated with this contact |
void |
startTimerTask()
Starts the timer and its task to periodically update the status of remote machine |
void |
stopTimerTask()
Stops the timer and its task to stop updating the status of remote machine |
| Methods inherited from interface net.java.sip.communicator.service.protocol.Contact |
|---|
getAddress, getDisplayName, getImage, getParentContactGroup, getPersistentData, getPresenceStatus, getProtocolProvider, getStatusMessage, isPersistent, isResolved |
| Field Detail |
|---|
static final int CONVERSATION_MESSAGE_RECEIVED
static final int SYSTEM_MESSAGE_RECEIVED
| Method Detail |
|---|
void setParentGroup(ContactGroupSSHImpl newParentGroup)
newParentGroup - the ContactGroupSSHImpl that is now
parent of this ContactSSHImplvoid setPresenceStatus(PresenceStatus sshPresenceStatus)
sshPresenceStatus - the SSHPresenceStatus
currently valid for this contact.OperationSetPersistentPresence getParentPresenceOperationSet()
OperationSetBasicInstantMessaging getParentBasicInstantMessagingOperationSet()
OperationSetFileTransfer getFileTransferOperationSet()
int getMessageType()
void setMessageType(int messageType)
messageType - void setPersistentData(String persistentData)
persistentData - of the contactvoid setResolved(boolean resolved)
resolved - true to make the contact resolved; false to
make it unresolvedvoid setPersistent(boolean isPersistent)
isPersistent - true if the contact is persistent and false
otherwise.boolean isCommandSent()
void setCommandSent(boolean commandSent)
commandSent -
void initializeShellIO(InputStream shellInputStream,
OutputStream shellOutputStream)
shellInputStream - The InputStream of stackshellOutputStream - The OutputStream of stackvoid closeShellIO()
boolean isConnectionInProgress()
void setConnectionInProgress(boolean connectionInProgress)
connectionInProgress - void savePersistentDetails()
SSHContactInfo getSSHConfigurationForm()
com.jcraft.jsch.JSch getJSch()
void startTimerTask()
void stopTimerTask()
void setJSch(com.jcraft.jsch.JSch jsch)
jsch - to be associatedString getUserName()
String getHostName()
String getPassword()
void setPassword(String password)
password - com.jcraft.jsch.Session getSSHSession()
void setSSHSession(com.jcraft.jsch.Session sshSession)
sshSession - the newly created SSH Session to be associatedcom.jcraft.jsch.Channel getShellChannel()
void setShellChannel(com.jcraft.jsch.Channel shellChannel)
shellChannel - to be associated with SSH Session of this contact
void sendLine(String message)
throws IOException
message - to be sent
IOException - if message failed to be sentInputStream getShellInputStream()
OutputStream getShellOutputStream()
InputStreamReader getShellReader()
PrintWriter getShellWriter()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||