cdac.medinfo.sdk.hl7282.hl7net.auxiliaryprotocol.pubsub

## Class PublishAgent

- java.lang.Object
- - cdac.medinfo.sdk.hl7282.hl7net.auxiliaryprotocol.pubsub.PublishAgent

- All Implemented Interfaces:
    IPublishAgent

      public class PublishAgent
      extends java.lang.Object
      implements IPublishAgent

  The class PublishAgent is responsible for publishing the HL7 Messages to registered clients by matching UserParameters and response messagetype sent by subscriber to Publish Server.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PublishAgent()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `EnumSubscriptionType` | `getSubscriptionType(ISegmentSet objSegmentSet)` This will check that recieved message is subscription message or not.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PublishAgent

          public PublishAgent()

  - ### Method Detail

    - #### getSubscriptionType

          public EnumSubscriptionType getSubscriptionType(ISegmentSet objSegmentSet)

      This will check that recieved message is subscription message or not.
      Specified by:
        `getSubscriptionType` in interface `IPublishAgent`
      Parameters:
        `objSegmentSet` - object of Segment Set received.
      Returns:
        EnumSubscriptionType - true if it is subscription message yes else false.