|
||||||||||
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.server.net.ProColServer
The main ProCol server class. Accepts connections and creates ServerConnections to maintain them. Keeps track of the project and connection lists, server properties, etc.
Constructor Summary | |
ProColServer()
|
Method Summary | |
int |
authenticateUser(java.lang.String usernameIn,
java.lang.String passwordIn)
Description of the Method |
void |
closeAllConnections()
Description of the Method |
void |
closeConnection(ServerConnection connectionIn)
Description of the Method |
protected void |
finalize()
|
java.util.Vector |
getAllowedProjects(ProColUser userIn)
Gets the allowedProjects attribute of the ProColServer class |
int |
getPort()
Gets the port attribute of the ProColServer class |
ProColServerProject |
getProject(java.lang.String projectName)
Gets the project attribute of the ProColServer object |
java.util.Vector |
getProjectList()
Gets the projectList attribute of the ProColServer class |
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 |
getUserProperty(java.lang.String propertyIn)
Gets the userProperty attribute of the ProColServer class |
java.lang.String |
getUserProperty(java.lang.String propertyIn,
java.lang.String defaultIn)
Gets the userProperty attribute of the ProColServer class |
boolean |
isRunning()
Gets the running attribute of the ProColServer class |
boolean |
isUserLoggedIn(java.lang.String usernameIn)
Gets the userLoggedIn attribute of the ProColServer class |
boolean |
isWithinJEdit()
Gets the withinJEdit attribute of the ProColServer class |
static void |
printErr(java.lang.String errIn)
Prints an error message. |
static void |
printInfo(java.lang.String infoIn)
Prints an informational message. |
void |
run()
Main processing method for the ProColServer object |
java.lang.Object |
setProperty(java.lang.String keyIn,
java.lang.String propertyIn)
Gets the property attribute of the ProColServer class |
void |
setWithinJEdit(boolean withinJEditIn)
Sets the withinJEdit attribute of the ProColServer class |
void |
stopServer()
Description of the Method |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProColServer()
Method Detail |
public static void printErr(java.lang.String errIn)
errIn
- Description of the Parameterpublic static void printInfo(java.lang.String infoIn)
infoIn
- Description of the Parameterpublic void run()
run
in interface java.lang.Runnable
public void stopServer()
public void closeConnection(ServerConnection connectionIn)
connectionIn
- Description of the Parameterpublic void closeAllConnections()
public java.lang.Object setProperty(java.lang.String keyIn, java.lang.String propertyIn)
propertyIn
- Description of the ParameterkeyIn
-
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
public java.lang.String getUserProperty(java.lang.String propertyIn)
propertyIn
- Description of the Parameter
public java.lang.String getUserProperty(java.lang.String propertyIn, java.lang.String defaultIn)
propertyIn
- Description of the ParameterdefaultIn
- Description of the Parameter
public boolean isWithinJEdit()
public boolean isRunning()
public int getPort()
public int authenticateUser(java.lang.String usernameIn, java.lang.String passwordIn)
usernameIn
- Description of the ParameterpasswordIn
- Description of the Parameter
public boolean isUserLoggedIn(java.lang.String usernameIn)
usernameIn
- Description of the Parameter
public java.util.Vector getProjectList()
public java.util.Vector getAllowedProjects(ProColUser userIn)
userIn
- Description of the Parameter
public ProColServerProject getProject(java.lang.String projectName)
projectName
- Description of the Parameter
public void setWithinJEdit(boolean withinJEditIn)
withinJEditIn
- The new withinJEdit valueprotected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |