Class PublisherClientImpl<P>
- java.lang.Object
-
- io.mosip.kernel.websub.api.client.PublisherClientImpl<P>
-
- Type Parameters:
P- Type of payload.
- All Implemented Interfaces:
PublisherClient<String,P,org.springframework.http.HttpHeaders>
@Component public class PublisherClientImpl<P> extends Object implements PublisherClient<String,P,org.springframework.http.HttpHeaders>
This class is responsible for all the specification stated inPublisherClientinterface.- Author:
- Urvil Joshi
-
-
Constructor Summary
Constructors Constructor Description PublisherClientImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifyUpdate(String topic, org.springframework.http.HttpHeaders headers, String hubURL)voidpublishUpdate(String topic, P payload, String contentType, org.springframework.http.HttpHeaders headers, String hubURL)voidregisterTopic(String topic, String hubURL)voidunregisterTopic(String topic, String hubURL)
-
-
-
Method Detail
-
registerTopic
public void registerTopic(String topic, String hubURL)
- Specified by:
registerTopicin interfacePublisherClient<String,P,org.springframework.http.HttpHeaders>
-
unregisterTopic
public void unregisterTopic(String topic, String hubURL)
- Specified by:
unregisterTopicin interfacePublisherClient<String,P,org.springframework.http.HttpHeaders>
-
publishUpdate
public void publishUpdate(String topic, P payload, String contentType, org.springframework.http.HttpHeaders headers, String hubURL)
- Specified by:
publishUpdatein interfacePublisherClient<String,P,org.springframework.http.HttpHeaders>
-
notifyUpdate
public void notifyUpdate(String topic, org.springframework.http.HttpHeaders headers, String hubURL)
- Specified by:
notifyUpdatein interfacePublisherClient<String,P,org.springframework.http.HttpHeaders>
-
-