|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBaseExtension
com.electrotank.electroserver.plugins.AbstractPlugin
The AbstractPlugin represents an abstract class that must be extended for all Java plugins. It contains a series of methods that can be over ridden to provide various functionality needed to create your own extentions to the server. See the articles at http://www.electrotank.com/electroserver for more details.
| Field Summary | |
static String |
EXECUTING_USER_NAME
The name of the client that has made this request. |
static String |
MESSAGE_TEXT
The exact textual data sent from the client. |
static String |
METHOD
The name of the method that the client wishes to execute. |
| Constructor Summary | |
AbstractPlugin()
|
|
| Method Summary | |
PluginHelper |
getPluginHelper()
Allows a plugin to get an instance of its PluginHelper. |
abstract void |
pluginDestroy()
Called when the plugin is to be unloaded. |
abstract void |
pluginInit(Map parameters)
Called when the plugin is first initialized. |
Map |
pluginInterop(Map parameters)
Called by another plugin using the PluginHelper method "callRemotePlugin". |
abstract void |
pluginRequest(Map parameters)
Called when a client requests something from the server. |
void |
pluginUserEnter(String userName,
int userNumber)
Allows for a plugin to be notified when a user enters this room. |
void |
pluginUserExit(String userName,
int userNumber)
Allows for a plugin to be notified when a user leaves this room. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String METHOD
public static final String EXECUTING_USER_NAME
public static final String MESSAGE_TEXT
| Constructor Detail |
public AbstractPlugin()
| Method Detail |
public abstract void pluginInit(Map parameters)
throws PluginException
parameters - contains the name/value pairs of variables passed into the method.
PluginException - thrown when an exception occurs at the plugin level and it needs to be handled
by the server.public abstract void pluginRequest(Map parameters)
throws PluginException
parameters - contains the name/value pairs of variables passed into the method.
PluginException - thrown when an exception occurs at the plugin level and it needs to be handled
by the server.public abstract void pluginDestroy()
throws PluginException
PluginException - thrown when an exception occurs at the plugin level and it needs to be handled
by the server.public Map pluginInterop(Map parameters)
throws PluginException
parameters - Map containing the name/value pairs of data to be used
PluginException - thrown when an exception occurs at the plugin level and it needs to be handled
by the server.public void pluginUserEnter(String userName,
int userNumber)
throws PluginException
userNumber - number of the user who just entered.userName - name of the user that just entered
PluginException - thrown when an exception occurs at the plugin level and it needs to be handled
by the server.public void pluginUserExit(String userName,
int userNumber)
throws PluginException
userNumber - number of the user who just left.userName - name of the user that just left
PluginException - thrown when an exception occurs at the plugin level and it needs to be handled
by the server.public final PluginHelper getPluginHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||