|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--com.enderak.procol.common.util.EnhancedObservable | +--com.enderak.procol.client.net.ProColClient
Main client class for ProCol - responsible for receiving all network communication from the server and starting handler threads, as well as notifying Observers of any network status changes
Field Summary | |
protected boolean |
isRunning
|
protected java.util.Vector |
userList
|
Constructor Summary | |
ProColClient()
Constructor for the ProColClient |
Method Summary | |
void |
addPrivateMessage(java.lang.String messageTo,
java.lang.String subject,
java.lang.String message)
|
void |
addTree(byte[] treeData)
|
void |
authenticateUser(java.lang.String userNameIn,
java.lang.String passwordIn)
Description of the Method |
void |
checkOutFile(javax.swing.tree.TreePath[] selectedPaths)
|
void |
close()
Description of the Method |
void |
closeProject()
|
boolean |
connectToServer(java.lang.String hostIn,
int portIn)
Connects the client to the server, and authenticates the user |
void |
deleteFile(javax.swing.tree.TreePath[] selectedPaths)
|
void |
disconnect()
|
void |
downloadFile(javax.swing.tree.TreePath[] selectedPaths)
|
void |
downloadSnapshot()
|
void |
getFileHistory(java.lang.String fileName)
|
IncomingMessageHandler |
getIMH()
|
MessageFactory |
getMessageFactory()
|
OutgoingMessageHandler |
getOMH()
|
PacketFactory |
getPacketFactory()
|
int |
getPort()
Gets the currently isRunning port number |
ProColClientProject |
getProject()
|
void |
getProjectInfo()
|
void |
getProjectInfo(java.lang.String projectIn)
|
void |
getProjectList()
Gets the projectList attribute of the ProColClient object |
java.lang.String |
getProperty(java.lang.String propertyIn)
Gets the property attribute of the ProColServer class |
java.lang.String |
getProperty(java.lang.String propertyIn,
java.lang.String defaultIn)
Gets the property attribute of the ProColServer class |
java.lang.String |
getServer()
Gets the currently isRunning server IP or hostname |
javax.net.ssl.SSLSocket |
getServerSocket()
Gets the channel attribute of the ServerConnection object |
java.net.URI |
getSnapshotURI()
|
ProColClientUser |
getUser()
Gets the user attribute of the ProColClient object |
void |
getUserInfo(java.lang.String userName)
|
java.util.Vector |
getUserList()
Gets the userList attribute of the ProColClient object |
boolean |
isAuthenticated()
|
boolean |
isConnected()
Gets the isRunning attribute of the ProColClient object |
void |
joinProject(java.lang.String projectIn)
Description of the Method |
void |
killServerRemotely()
|
void |
newDir(javax.swing.tree.TreePath[] selectedPaths)
|
void |
newFile(javax.swing.tree.TreePath[] selectedPaths)
|
void |
receive()
Description of the Method |
void |
renameFile(javax.swing.tree.TreePath[] selectedPaths)
|
void |
run()
Main processing method for the ProColClient - receives and handles messages from the server |
void |
sendFileRequest(java.net.URI fileURI,
java.net.URI destURI,
int request)
|
void |
sendHello()
|
void |
setUser(ProColClientUser userIn)
|
void |
setUserList(java.util.Vector userListIn)
|
void |
updateFile(ProColFile file)
|
void |
uploadDirs()
|
void |
uploadFiles()
|
Methods inherited from class com.enderak.procol.common.util.EnhancedObservable |
forceNotify, forceNotify |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean isRunning
protected java.util.Vector userList
Constructor Detail |
public ProColClient()
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void receive()
public boolean connectToServer(java.lang.String hostIn, int portIn)
hostIn
- IP or hostname of the serverportIn
- Port to connect to on server
public void close()
public void sendHello()
public void authenticateUser(java.lang.String userNameIn, java.lang.String passwordIn)
userNameIn
- Description of the ParameterpasswordIn
- Description of the Parameterpublic void getProjectList()
public void getProjectInfo()
public void getProjectInfo(java.lang.String projectIn)
projectIn
- Description of the Parameterpublic void getUserInfo(java.lang.String userName)
userName
- Description of the Parameterpublic void getFileHistory(java.lang.String fileName)
fileName
- Description of the Parameterpublic void downloadSnapshot()
public void checkOutFile(javax.swing.tree.TreePath[] selectedPaths)
selectedPaths
- Description of the Parameterpublic void updateFile(ProColFile file)
file
- Description of the Parameterpublic void downloadFile(javax.swing.tree.TreePath[] selectedPaths)
selectedPaths
- Description of the Parameterpublic void uploadFiles()
public void uploadDirs()
public void deleteFile(javax.swing.tree.TreePath[] selectedPaths)
selectedPaths
- Description of the Parameterpublic void renameFile(javax.swing.tree.TreePath[] selectedPaths)
selectedPaths
- Description of the Parameterpublic void newFile(javax.swing.tree.TreePath[] selectedPaths)
selectedPaths
- Description of the Parameterpublic void newDir(javax.swing.tree.TreePath[] selectedPaths)
selectedPaths
- Description of the Parameterpublic void closeProject()
public void joinProject(java.lang.String projectIn)
projectIn
- Description of the Parameterpublic void addPrivateMessage(java.lang.String messageTo, java.lang.String subject, java.lang.String message)
messageTo
- Description of the Parametermessage
- Description of the Parametersubject
- public void disconnect()
public void killServerRemotely()
public void sendFileRequest(java.net.URI fileURI, java.net.URI destURI, int request)
fileURI
- Description of the ParameterdestURI
- Description of the Parameterrequest
- Description of the Parameterpublic void setUserList(java.util.Vector userListIn)
userListIn
- public void addTree(byte[] treeData)
treeData
- public ProColClientProject getProject()
public boolean isConnected()
public boolean isAuthenticated()
public java.lang.String getServer()
public int getPort()
public ProColClientUser getUser()
public java.util.Vector getUserList()
public javax.net.ssl.SSLSocket getServerSocket()
public PacketFactory getPacketFactory()
public MessageFactory getMessageFactory()
public IncomingMessageHandler getIMH()
public OutgoingMessageHandler getOMH()
public java.net.URI getSnapshotURI()
public void setUser(ProColClientUser userIn)
userIn
- public java.lang.String getProperty(java.lang.String propertyIn)
propertyIn
- Description of the Parameter
public java.lang.String getProperty(java.lang.String propertyIn, java.lang.String defaultIn)
propertyIn
- Description of the ParameterdefaultIn
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |