| Servlet that allows the client to add, remove, and check for
the existence of Components at both the servlet's agent
(eg plugin) or node (eg agent).
The path of the servlet is "/load". This is a bit of a
misnomer, since in addition to "add" this servlet also
supports "remove" and "contains".
The URL parameters to this servlet are:
- action=STRING
Required action for container operation; this should
be either "add", "remove", or "contains", where the
default is "add".
Important Note:
"add" acts as an "ensure-is-loaded"; if the component
is already loaded then the action is ignored (success).
"remove" similarily acts as an "ensure-is-not-loaded",
where a remove of a non-loaded component is ignored
(success).
"contains" will only return with a success status code
if the component is loaded ("assert-is-loaded"). If
the component is not loaded then an error response
is returned.
- target=STRING
Optional target of where to add this component;
this should be either "agent" or "node", where the
default is "agent". This must agree with the
"insertionPoint".
- name=STRING
Optional name of the component; defaults to the
classname.
- insertionPoint=STRING
Insertion point for the component; the default is:
Node.AgentManager.Agent.PluginManager.Plugin.
- classname=STRING
Name of the component class to load.
If this parameter is missing then a "usage" HTML
page is generated.
- parameters=STRING1,STRING2,..,STRINGN
Optional list of string parameters to pass to the
component. Defaults to null.
- codebase=STRING
Optional codebase URL for locating the class file(s).
The default is to use the node's classpath.
Note the SECURITY issues in loading an arbitrary
Component!
|