This component advertises bundles through HTTP by using the
ServletService .
It looks in the
ConfigService for config entries of type
"-HTTP_REG" and scheme "http", or "-HTTPS_REG" and "https",
e.g.
X={-HTTP_REG=http://test.com:8800}
and if the localhost is "test.com" and the local
ServletService port is "8800" then this component registers in
the
ServletService as "/wp_bootstrap". The bound
Servlet responds to "doGet" request with text-encoded
bundles tracked by the
org.cougaar.core.wp.bootstrap.AdvertiseService (i.e. locally bound
leases).
Another possibility is to push bundles to a remote server, using
a
java.net.URLConnection .
|