| Interface | Description |
|---|---|
| ChannelFinderClient |
A Client object to query the channelfinder service for channels based on
channel names and/or properties and tags associated with channels.
|
| ChannelQueryListener |
| Class | Description |
|---|---|
| Channel |
A Channel object represents channel finder channel.
Each channel has a unique name and an owner and may have zero or more properties/tags associated with it. |
| Channel.Builder |
Builder class to aid in a construction of a channel.
|
| ChannelFinder | |
| ChannelFinderClientComp | |
| ChannelFinderClientImpl |
A Client object to query the channelfinder service for channels based on
channel names and/or properties and tags associated with channels.
|
| ChannelFinderClientImpl.CFCBuilder |
A Builder class to help create the client to the Channelfinder Service
|
| ChannelQuery |
An observable query to channel finder that maintains the cached result.
|
| ChannelQuery.Builder | |
| ChannelQuery.Result |
Result of the query.
|
| ChannelUtil | |
| Property |
A Property object represents a channel finder property which consists of the
unique name, an owner and a value.
|
| Property.Builder | |
| RawLoggingFilter |
A Raw HTML request/response logging filter.
|
| Tag |
A Tag object represents a channel finder tag which consists of the
unique name and an owner.
|
| Tag.Builder |
Builder class to aid in a construction of a
Tag. |
| XmlChannel |
Channel object that can be represented as XML/JSON in payload data.
|
| XmlChannels |
Channels (collection) object that can be represented as XML/JSON in payload data.
|
| XmlProperties |
Channels (collection) object that can be represented as XML/JSON in payload data.
|
| XmlProperty |
Property object that can be represented as XML/JSON in payload data.
|
| XmlTag |
Tag object that can be represented as XML/JSON in payload data.
|
| XmlTags |
Channels (collection) object that can be represented as XML/JSON in payload data.
|
| Exception | Description |
|---|---|
| ChannelFinderException |
A Exception Type for various channelfinder exception conditions.
|
// Import from here
import gov.bnl.channelfinder.api.ChannelFinderClient.CFCBuilder;
// Create a client of the default service URL
client = CFCBuilder.serviceURL().create();
// Create a client to the specified service with HTTP authentication enabled
and with username myUsername and password myPasword
authenticatedClient = CFCBuilder.serviceURL("http://my.server.location/ChannelFinder")
.withHTTPAuthentication(true).username("myUsername").password("myPassword").create();
// search for all channels in the channelfinder with name starting with "SR:C01". CollectionfoundChannels = client.findByName("SR:C01*");
// search for all channels with the tag "shroffk-favorite-channel". CollectionfoundChannels = client.findByTag("shroffk-favorite-channel");
// search for all channel which have the property "device" with value = "bpm". CollectionfoundChannels = client.findByProperty("device", "bpm"); // search for all channels which have the property "device with value "bpm" or "magnet" Collection foundChannels = client.findByProperty("device", "bpm", "magnet");
// search for channels with name starting with "SR:C01" AND with tag "shroffk-favorite-channel" // AND had property "device" with value "bpm" OR "magnet" Mapmap = new Hashtable (); map.put("~name", "SR:C01*"); map.put("~tag", "shroffk-favorite-channel"); map.put("device", "bpm, magnet"); Collection foundChannels = client.find(map); // search for channels with name starting with "SR:C01" AND with tag "shroffk-favorite-channel" // AND had property "device" with value "bpm" OR "magnet" MultivaluedMapImpl multiValuedMap = new MultivaluedMapImpl(); multiValuedMap.put("~name", "SR:C01*"); multiValuedMap.put("~tag", "shroffk-favorite-channel"); multiValuedMap.add("device", "bpm"); multiValuedMap.add("device", "magnet"); Collection foundChannels = client.find(multiValuedMap);
Copyright © 2012. All Rights Reserved.