|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscone.accesstracking.AppletConnector
public class AppletConnector
Every time, LogApplet connects to RAS (scone.ras.rasServer.java), RAS starts an instance of this class that lives as long as the connection of the applet. This class communicates with the Applet, decodes received messages and calls the corresponding methods of the EventDecoder class, that creates and fills the Access events.
Constructor Summary | |
---|---|
AppletConnector()
|
Method Summary | |
---|---|
java.lang.String |
getParameter(java.lang.String inputLine,
java.lang.String paramName)
This Method gets the value of the parameter paramName from the String sent by the applet. |
void |
handle(Connection c)
RAS handler for the RAS-Connection from LogApplet. |
boolean |
sendToApplet(java.lang.String command,
java.lang.String parameter1,
java.lang.String parameter2)
Sends a string back to the Applet, containing the command to be executed by the applet, an url if needed and a target if needed. |
boolean |
testIsAppletExistent()
Sends an empty String to an applet only used to check whether this applet exists or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppletConnector()
Method Detail |
---|
public void handle(Connection c)
handle
in interface ConnectionHandler
c
- The Connection object to communicate with LogAppletpublic boolean testIsAppletExistent()
public boolean sendToApplet(java.lang.String command, java.lang.String parameter1, java.lang.String parameter2)
command
- The command for the Applet (BringToFront or OpenURL) (not casesensitive)url
- The url needed for OpenURL. Send an empty String for other commands.target
- The target needet for OpenURL. Send an empty String for other commands.public java.lang.String getParameter(java.lang.String inputLine, java.lang.String paramName)
paramName
- The name of the parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |