/** * Registers the given application to handle messages corresponding to ALL * message types and trigger events. */ public synchronized void registerApplication(AppRoutingData appRouting, ReceivingApplication<? extends Message> application) { if (appRouting == null) { throw new NullPointerException("appRouting must not be null"); } applicationRouter.bindApplication(appRouting, application); }
/** * Registers the given application to handle messages corresponding to ALL * message types and trigger events. */ public synchronized void registerApplication(AppRoutingData appRouting, ReceivingApplication<? extends Message> application) { if (appRouting == null) { throw new NullPointerException("appRouting must not be null"); } applicationRouter.bindApplication(appRouting, application); }
/** * Registers the given application to handle messages corresponding to the * given type and trigger event. Only one application can be registered for * a given message type and trigger event combination. A repeated * registration for a particular combination of type and trigger event * over-writes the previous one. Note that the wildcard "*" for messageType * or triggerEvent means any type or event, respectively. */ public void registerApplication(String messageType, String triggerEvent, ReceivingApplication handler) { applicationRouter.bindApplication(new AppRoutingDataImpl(messageType, triggerEvent, "*", "*"), handler); }
/** * Registers the given application to handle messages corresponding to the * given type and trigger event. Only one application can be registered for * a given message type and trigger event combination. A repeated * registration for a particular combination of type and trigger event * over-writes the previous one. Note that the wildcard "*" for messageType * or triggerEvent means any type or event, respectively. */ public void registerApplication(String messageType, String triggerEvent, ReceivingApplication handler) { applicationRouter.bindApplication(new AppRoutingDataImpl(messageType, triggerEvent, "*", "*"), handler); }
/** * Registers the given application to handle messages corresponding to the * given type and trigger event. Only one application can be registered for * a given message type and trigger event combination. A repeated * registration for a particular combination of type and trigger event * over-writes the previous one. Note that the wildcard "*" for messageType * or triggerEvent means any type or event, respectively. * * @deprecated use {@link #registerApplication(String, String, ca.uhn.hl7v2.protocol.ReceivingApplication)} and * {@link ca.uhn.hl7v2.protocol.impl.AppWrapper} */ public synchronized void registerApplication(String messageType, String triggerEvent, Application handler) { ReceivingApplication<Message> handlerWrapper = new AppWrapper(handler); applicationRouter.bindApplication(new AppRoutingDataImpl(messageType, triggerEvent, "*", "*"), handlerWrapper); }
/** * Registers the given application to handle messages corresponding to the * given type and trigger event. Only one application can be registered for * a given message type and trigger event combination. A repeated * registration for a particular combination of type and trigger event * over-writes the previous one. Note that the wildcard "*" for messageType * or triggerEvent means any type or event, respectively. * * @deprecated use {@link #registerApplication(String, String, ca.uhn.hl7v2.protocol.ReceivingApplication)} and * {@link ca.uhn.hl7v2.protocol.impl.AppWrapper} */ public synchronized void registerApplication(String messageType, String triggerEvent, Application handler) { ReceivingApplication<Message> handlerWrapper = new AppWrapper(handler); applicationRouter.bindApplication(new AppRoutingDataImpl(messageType, triggerEvent, "*", "*"), handlerWrapper); }