Re: [JXTA discuss] attribute/value discovery
Mohamed Abdelaziz <[email protected]> Tue, 13 Sep 2005 09:39:24 -0700
| Newsgroups | gmane.comp.java.jxta.general |
|---|---|
| Message-ID | <[email protected]> |
Currently discovery only supports searches on indexed root elements. We
are also quite open to contribution from the community to expand the
discovery protocol to provide support for xpath like queries and searchs.
Mohamed
Michele Amoretti wrote:
>Hi,
>
>I would like to know if it is possible to search for an advertisement using a
>sub-element (child) of one of the main attribute fields (name, description,
>param, ecc.)
>
>
>E.g.
>
>[publisher side]
>
>StructuredTextDocument param = (StructuredTextDocument)
> StructuredDocumentFactory.newStructuredDocument(new
>MimeMediaType("text/xml"), "Parm");
> String WSDLFile = rps.getInterfaceDescription("WSDL");
> if (WSDLFile != null) {
> Element e = param.createElement("WSDL", WSDLFile);
> param.appendChild(e);
> }
>
>ModuleSpecAdvertisement msAdv = ....
>
>msAdv.setParam(param);
>
>
>[searcher side]
>
>....getRemoteAdvertisements(null, DiscoveryService.ADV, attribute, value, 10);
>
>
>Can attribute be "WSDL"? Is there a way to specify that the attribute we
>search for is "WSDL child of Parm"?
>
>
>
--
http://blogs.sun.com/roller/page/hamada
http://weblogs.java.net/blog/hamada