[jdev] Help JSO
trejkaz at trypticon.org
Fri Apr 22 01:30:35 CDT 2005
> How can we use JSO api to send features list from the server to the
> Thanks in advance!
I assume you mean you're writing a server, as when writing a client, it
gets sent automatically.
Anyway, as far as I have been able to gather, the server has to create a
StreamFeatureset and send it like any other Packet (as StreamFeatureset is
a subinterface of Packet.)
It would probably look a bit like this:
// You would know how to get both of these...
StreamDataFactory sdf = ... ;
PacketRouter router = ... ;
// Create and send the featureset.
Packet featureset = sdf.createPacketNode(StreamFeatureset.NAME);
As far as I know there is no convenience such as there is on the client
side (by convenience I mean getFeature(java.lang.Class).)
Anyway I hope this helps, I don't feel too coherent today, maybe that
means it's time for coffee.
More information about the JDev