|
VisiBroker for Java |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resolver
This interface provides a means of bootstrapping to an object through HTTP, by retrieving an object reference from a well-known URL on a web server.
Method Summary | |
---|---|
void |
force_register_url(java.lang.String url_s,
Object obj)
The force_register_url() method behaves like register_url(), but it will overwrite an existing binding. |
Object |
locate(java.lang.String url_s)
Deprecated. Use the string_to_object method on the org.omg.CORBA.ORB interface instead, e.g. orb.string_to_object("http://www.acme.com/services/ns.ior"); , which is a more portable
solution. |
void |
register_url(java.lang.String url_s,
Object obj)
The register_url method will publish the IOR of the obj parameter using the URL given in the url_s argument. |
Method Detail |
---|
void register_url(java.lang.String url_s, Object obj) throws InvalidURL, CommFailure, ReqFailure, AlreadyExists
url_s
- The URL for the registrationobj
- The object reference that is to be registered
InvalidURL
- The InvalidURL is thrown if the URL is
syntactically malformed.
CommFailure
- The CommFailure indicates that a
communication problem with the HTTP server was encountered.
ReqFailure
- The ReqFailure exception will be thrown
if the HTTP request fails for some reason.
AlreadyExists
- if URL already registered.void force_register_url(java.lang.String url_s, Object obj) throws InvalidURL, CommFailure, ReqFailure
url_s
- The URL for the registrationobj
- The object reference that is to be registered
InvalidURL
- The InvalidURL is thrown if the URL is
syntactically malformed.
CommFailure
- The CommFailure indicates that a
communication problem with the HTTP server was encountered.
ReqFailure
- The ReqFailure exception will be thrown
if the HTTP request fails for some reason.Object locate(java.lang.String url_s) throws InvalidURL, CommFailure, ReqFailure
orb.string_to_object("http://www.acme.com/services/ns.ior");
, which is a more portable
solution.
url_s
- The URL to be resolved
InvalidURL
- The InvalidURL is thrown if the URL is
syntactically malformed.
CommFailure
- The CommFailure indicates that a
communication problem with the HTTP server was encountered.
ReqFailure
- The ReqFailure exception will be thrown if
the HTTP request fails for some reason.
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |