| org.cougaar.planning.servlet.ServletBase org.cougaar.planning.servlet.HierarchyServlet
HierarchyServlet | public class HierarchyServlet extends ServletBase (Code) | |
Servlet worker that gathers Organizational hierarchy information
from a Cougaar society.
Takes three parameters :
- recurse, which controls whether to recurse down the hierarchy
- format, which specifies whether the response is a data stream, xml, or html.
- allRelationships, which returns all the relationships for an agent
html is in the familiar CLUSTERS_R format.
An example URL is :
http://localhost:8800/$TRANSCOM/hierarchy?recurse=true&format=xml
This says to recurse from the TRANSCOM agent and return an XML document.
Example output from this query :
TRANSCOM
TRANSCOM
GlobalAir
GlobalAir
....
|
Field Summary | |
public static boolean | VERBOSE |
VERBOSE | public static boolean VERBOSE(Code) | | |
getUsage | public void getUsage(PrintWriter out, SimpleServletSupport support)(Code) | |
USAGE
Allows a number of choices:
1) Recursive or not
2) All relationships or just superior-subordinate
3) Format : html, xml, or serialized java objects
Only called if no arguments are given.
|
toString | public String toString()(Code) | | Pretty to-String for debugging.
|
|
|