« Return to Thread: How to create a custom dialect for TopicExpression

How to create a custom dialect for TopicExpression

by nero_s :: Rate this Message:

Reply to Author | View in Thread

Hi,
I am implementing a prototype using muse-wsn, and our prototype requires usage of a custom Dialect for TopicExpression.

Muse currently supports only Concrete (<wsnt:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete">tns:MyTopic</wsnt:TopicExpression>)

We want implement a custom dialect, Dialect="urn:ihe:iti:xds-b:pubsub:2008" and with XML as the actual topic.

 <wsnt:Filter  xmlns="urn:ihe:iti:pub-sub:2008" xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" xmlns:tns="http://ws.apache.org/muse/test/wsrf">
        <wsnt:TopicExpression Dialect="urn:ihe:iti:xds-b:pubsub:2008">  
                <rim:AdhocQuery id="urn:uuid:14d4debf-8f97-4251-9a74-a90016b0af0d">
                        <rim:Slot name="$XDSDocumentEntryPatientId">
                                    :
                                    :
                </rim:AdhocQuery>
        </wsnt:TopicExpression>
</wsnt:Filter>

I am new to muse and really need some help here, So far i have:
1) Created a filter class:  public class IHEFilter implements Filter
2) Created Handler:        public class IHEFilterHandler implements FilterFactoryHandler
3) in initialize() method of SimpleNotificationProducer added FilterFactory.getInstance().addHandler(new IHEFilterHandler());

Is this the right approach?

 « Return to Thread: How to create a custom dialect for TopicExpression