| Previous: Installation | Next: Frequently Asked Questions | Table of Contents |
Communicating with the Handle System is done by sending requests to servers which then return a response. To resolve a handle, you send a ResolutionRequest to a server. To create a handle you send a CreateHandleRequest to a server. If you want to modify, remove, or add values to or from a handle you send a ModifyValueRequest, RemoveValueRequest, or AddValueRequest to a server, respectively.
There is an object for each of these requests in the net.handle.hdllib java package. In order to send these messages to a server you can use a HandleResolver object which is also located in the net.handle.hdllib package. For most messages, the HandleResolver object will locate the server that your messages should go to, send them, and return the response that was sent by the server. The following is an example that shows one way of programmatically resolving a handle:
|
If all you want to do is resolve a handle, you can use the much simpler resolveHandle method of the HandleResolver as shown below.
|
The Handle System Server and Client distributions include a "simple" package with command line tools to create, delete, and list handles. It also includes programs to home a naming authority and trace handle resolution. These programs provide a good starting point and simple guide to developing Java-based custom handle client software with the API. Each example program includes steps needed to form a handle request to send to a server . They are run from the command line and require certain arguments. The following commands should be run in the same directory as the `handle.jar' file.
Simple tool for handle creation. It uses public key authentication.
|
Simple tool for handle deletion. It uses public key authentication.
|
Simple tool for listing handles. It uses public key authentication.
|
Simple tool for resolving a handle.
|
Simple tool for homing Naming Authorities. It uses public key authentication.
|
| Previous: Installation | Next: Frequently Asked Questions | Table of Contents |