|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ConnectionHandler |
Class Summary | |
---|---|
Connection | A Connection Object represents a connection between two peers. |
DedicatedHandlerExample | |
RasServer | |
RasTest | |
SingletonHandlerExample |
This package contains the classes related to the Scone RAS-Server.
The Scone RAS-Server allows quick socket access to data generated by Scone, e.g. for Applets or Plugins.
For instructive examples have a look at scone.ras.RasTest, scone.ras.DedicatedRasHandlerExample and scone.ras.SingletonRasHandlerExample
To enable the RAS-Server in you plugin you have to return the requirement RAS
and
to implement the method public int getRasPort()
which simply returns
the wanted RAS port as an integer number.
package hyperscout2;
import scone.*;
import scone.ras.*;
import scone.proxy.*;
import scone.netobjects.*;
import scone.util.*;
import scone.util.tokenstream.*;
public class Plugin extends scone.Plugin{
//requirements
public int getRequirements(){
return ACCESSTRACKING | PARSEDOCUMENT | CONSIDERLINKS | RESOURCEGENERATOR | RAS;
}
public int getRasPort() {
return 8084; }
public void init(){
GeneralResourceGenerator.addPath("/_hyperscout2/resources","resources/hyperscout2");
PopupCodeAdder pAdder=new PopupCodeAdder();
pAdder.setup("le: PopupCodeAdder",HTDOCCONDITION,60);
addMeg(pAdder);
LinkEventAdder lea=new LinkEventAdder();
lea.setup("le: linkeventadder",HTDOCCONDITION,60);
addMeg(lea);
}
}
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |