org.wso2.carbon.identity.notification.mgt.json.bean
Class JsonSubscription

java.lang.Object
  extended by org.wso2.carbon.identity.notification.mgt.bean.Subscription
      extended by org.wso2.carbon.identity.notification.mgt.json.bean.JsonSubscription

public class JsonSubscription
extends org.wso2.carbon.identity.notification.mgt.bean.Subscription

Event class is a bean class for a registered event. ie registered events for JSON message sending module. All event related data are stored in this class


Field Summary
 
Fields inherited from class org.wso2.carbon.identity.notification.mgt.bean.Subscription
subscriptionName, subscriptionProperties
 
Constructor Summary
JsonSubscription(org.wso2.carbon.identity.notification.mgt.bean.Subscription subscription)
          Passes a generic subscription object and this builds specific json subscription object
 
Method Summary
 List<JsonEndpointInfo> getEndpointInfoList()
           
 String getJsonContent()
           
 JsonEndpointInfo setAuthenticationInfo(String prefix, Properties endpointProperties, JsonEndpointInfo endpointInfo)
          Sets authentication information to JsonEndpointInfo object
 void setEndpointInfoList(List<JsonEndpointInfo> endpointInfoList)
           
 void setJsonContent(String jsonContent)
           
 
Methods inherited from class org.wso2.carbon.identity.notification.mgt.bean.Subscription
getSubscriptionName, getSubscriptionProperties, setSubscriptionProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonSubscription

public JsonSubscription(org.wso2.carbon.identity.notification.mgt.bean.Subscription subscription)
                 throws org.wso2.carbon.identity.notification.mgt.NotificationManagementException
Passes a generic subscription object and this builds specific json subscription object

Parameters:
subscription - A generic type subscription object
Throws:
org.wso2.carbon.identity.notification.mgt.NotificationManagementException
Method Detail

setAuthenticationInfo

public JsonEndpointInfo setAuthenticationInfo(String prefix,
                                              Properties endpointProperties,
                                              JsonEndpointInfo endpointInfo)
                                       throws org.wso2.carbon.identity.notification.mgt.NotificationManagementException
Sets authentication information to JsonEndpointInfo object

Parameters:
prefix - json.subscribe.eventName.endpoint.endpointName
endpointProperties - Set of properties which has keys with above prefix
endpointInfo - JsonEndpointInfo object which needs to be set the authentication params
Returns:
A JsonEndpointInfo object which has set relevant authentication information if authentication is required
Throws:
org.wso2.carbon.identity.notification.mgt.NotificationManagementException

getJsonContent

public String getJsonContent()

setJsonContent

public void setJsonContent(String jsonContent)

getEndpointInfoList

public List<JsonEndpointInfo> getEndpointInfoList()

setEndpointInfoList

public void setEndpointInfoList(List<JsonEndpointInfo> endpointInfoList)


Copyright © 2015 WSO2. All rights reserved.