|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.enderak.procol.server.net.ServerConnection
Maintains the server-side connection between the client and the server
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ServerConnection(javax.net.ssl.SSLSocket sslsocket)
Constructor for the ServerConnection object |
Method Summary | |
int |
addBugItem(java.lang.String sender,
java.lang.String subject,
java.lang.String priority,
java.lang.String assignedTo,
java.lang.String dueDate,
java.lang.String complete,
java.lang.String description)
Add a bug item to the list |
int |
addPrivateMessage(java.lang.String sender,
java.lang.String recipient,
java.lang.String replyTo,
java.lang.String subject,
java.lang.String message)
Adds a private message to the recipient's list |
int |
addPublicMessage(java.lang.String sender,
java.lang.String replyTo,
java.lang.String subject,
java.lang.String message)
Adds a public message to the list |
int |
addTodoItem(java.lang.String sender,
java.lang.String subject,
java.lang.String priority,
java.lang.String assignedTo,
java.lang.String dueDate,
java.lang.String complete,
java.lang.String description)
Add a todo item to the list |
void |
checkOutFiles(java.net.URI filePath)
Check out files |
int |
checkProtocol(ProColIncomingMessage message)
Checks the client protocol version compared to this protocol version |
void |
close()
closes this connection |
void |
closeProject()
closes the project associated with this connection |
int |
deleteBugItem(java.lang.String messageID)
Deletes a bug item |
int |
deletePrivateMessage(java.lang.String messageID)
Deletes a private message |
int |
deletePublicMessage(java.lang.String messageID)
Deletes a public message |
int |
deleteTodoItem(java.lang.String messageID)
Deletes a todo item |
java.lang.String |
getBugItem(java.lang.String messageID)
Return contents of a todo item to the client |
void |
getBugItemList()
Send bug list to the client |
javax.net.ssl.SSLSocket |
getClientSocket()
Gets the client socket that is associated with this connection |
MessageFactory |
getMessageFactory()
Gets the message factory that is associated with this connection |
PacketFactory |
getPacketFactory()
Gets the packet factory that is associated with this connection |
java.lang.String |
getPrivateMessage(java.lang.String messageID)
Return contents of a message to the client |
void |
getPrivateMessageList()
Send private message list to the client |
ProColServerProject |
getProject()
Gets the project that is associated with this connection |
java.lang.String |
getPublicMessage(java.lang.String messageID)
Return contents of a message to the client |
void |
getPublicMessageList()
Send public message list to the client |
java.lang.String |
getTodoItem(java.lang.String messageID)
Return contents of a todo item to the client |
void |
getTodoItemList()
Send todo list to the client |
ProColUser |
getUser()
Gets the user associated with this ServerConnection |
void |
openProject(java.lang.String projectNameIn)
Description of the Method |
void |
receive()
receives a packet from the network |
void |
run()
Main processing method for the ServerConnection object |
void |
sendFileHistory(java.net.URI filePath)
Sends the file history to the client |
void |
sendFiles(int request)
Send all files to the client |
void |
sendFiles(java.net.URI fileURI,
int request)
Sends multiple files to the client |
void |
sendFileTree()
Sends the file tree to the client |
void |
sendSnapshot()
Send all files to the client, as a snapshot |
void |
setUser(ProColUser userIn)
Sets the user associated with this connection |
void |
update(java.util.Observable o,
java.lang.Object arg)
Invoked whenever a class that is being observed changes. |
int |
updateBugItem(java.lang.String sender,
java.lang.String currentID,
java.lang.String subject,
java.lang.String priority,
java.lang.String assignedTo,
java.lang.String dueDate,
java.lang.String complete,
java.lang.String description)
Update a bug item in the list |
int |
updateTodoItem(java.lang.String sender,
java.lang.String currentID,
java.lang.String subject,
java.lang.String priority,
java.lang.String assignedTo,
java.lang.String dueDate,
java.lang.String complete,
java.lang.String description)
Update a todo item in the list |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServerConnection(javax.net.ssl.SSLSocket sslsocket)
sslsocket
- Description of the ParameterMethod Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void receive()
public void close()
public void closeProject()
public void openProject(java.lang.String projectNameIn)
projectNameIn
- Description of the Parameterpublic int checkProtocol(ProColIncomingMessage message)
message
- the message
public javax.net.ssl.SSLSocket getClientSocket()
public ProColUser getUser()
public void setUser(ProColUser userIn)
userIn
- public ProColServerProject getProject()
public PacketFactory getPacketFactory()
public MessageFactory getMessageFactory()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- the observable objectarg
- an argument passed to the notifyObservers methodpublic void sendFileTree()
public void sendFileHistory(java.net.URI filePath)
filePath
- the file pathpublic void sendFiles(java.net.URI fileURI, int request)
fileURI
- the root URI or file URIrequest
- The request typepublic void sendFiles(int request)
request
- The request typepublic void sendSnapshot()
public void checkOutFiles(java.net.URI filePath)
filePath
- The root URI or the file URIpublic int addPrivateMessage(java.lang.String sender, java.lang.String recipient, java.lang.String replyTo, java.lang.String subject, java.lang.String message)
sender
- The Senderrecipient
- The RecipientreplyTo
- The previous message number, if anysubject
- The subjectmessage
- The message
public void getPrivateMessageList()
public java.lang.String getPrivateMessage(java.lang.String messageID)
messageID
- The message to get
public int deletePrivateMessage(java.lang.String messageID)
messageID
- The message ID to delete
public int addPublicMessage(java.lang.String sender, java.lang.String replyTo, java.lang.String subject, java.lang.String message)
sender
- The senterreplyTo
- The previous message being replied to, if anysubject
- The subjectmessage
- The message
public void getPublicMessageList()
public java.lang.String getPublicMessage(java.lang.String messageID)
messageID
- The message to get
public int deletePublicMessage(java.lang.String messageID)
messageID
- The message ID to delete
public int addTodoItem(java.lang.String sender, java.lang.String subject, java.lang.String priority, java.lang.String assignedTo, java.lang.String dueDate, java.lang.String complete, java.lang.String description)
sender
- The sendersubject
- The subjectpriority
- The priorityassignedTo
- The assigneedueDate
- The due datecomplete
- percent completedescription
- Description of item
public int updateTodoItem(java.lang.String sender, java.lang.String currentID, java.lang.String subject, java.lang.String priority, java.lang.String assignedTo, java.lang.String dueDate, java.lang.String complete, java.lang.String description)
sender
- The sendersubject
- The subjectpriority
- The priorityassignedTo
- The assigneedueDate
- The due datecomplete
- percent completedescription
- Description of itemcurrentID
- Description of the Parameter
public void getTodoItemList()
public java.lang.String getTodoItem(java.lang.String messageID)
messageID
- The item to get
public int deleteTodoItem(java.lang.String messageID)
messageID
- The item to delete
public int addBugItem(java.lang.String sender, java.lang.String subject, java.lang.String priority, java.lang.String assignedTo, java.lang.String dueDate, java.lang.String complete, java.lang.String description)
sender
- The sendersubject
- The subjectpriority
- The priorityassignedTo
- The assigneedueDate
- The due datecomplete
- percent completedescription
- Description of item
public int updateBugItem(java.lang.String sender, java.lang.String currentID, java.lang.String subject, java.lang.String priority, java.lang.String assignedTo, java.lang.String dueDate, java.lang.String complete, java.lang.String description)
sender
- The sendersubject
- The subjectpriority
- The priorityassignedTo
- The assigneedueDate
- The due datecomplete
- percent completedescription
- Description of itemcurrentID
- Description of the Parameter
public void getBugItemList()
public java.lang.String getBugItem(java.lang.String messageID)
messageID
- The item to get
public int deleteBugItem(java.lang.String messageID)
messageID
- The item to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |