org.cougaar.lib.web.arch.root |
|
Java Source File Name | Type | Comment |
GlobalRegistry.java | Interface | Interface to a global registry of servers and their (globally-unique) child
names.
For example, host "bbn.com" could have HTTP support on port 4321 and HTTPS
support on port 8765, and contain two (internal) children, "AgentX" and
"AgentY". |
Redirector.java | Interface | Lookup the non-local root "name" and redirect / tunnel the client to the
appropriate remote server. |
RootServlet.java | Class | This Servlet handles all incoming requests,
typically by delegating "/$name" requests to the local
org.cougaar.lib.web.arch.leaf.LeafServlet s or by redirecting
the client if the named agent is remote.
The following rules are used to handle requests:
- If the request path is "/" then the
welcomeServlet is used to print a friendly
welcome page.
- If the path is "/agent" then the
agentsServlet
is used.
- If the name lacks a "/$" prefix, or is "/$/", or is "/$~/",
then the request is handled as if the prefix is
"/$rootName", and the following rules are invoked.
- If the "/$name[/.*]" name is locally registered then the
request is delegated to the registered LeafServlet.
|
RootServletRegistry.java | Class | The
ServletRegistry implementation for the
RootServlet , which contains the local names and binds/unbinds
these names in the
GlobalRegistry . |