use of org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method updateThreatProtectionPolicy.
/**
* {@inheritDoc}
*/
@Override
public void updateThreatProtectionPolicy(ThreatProtectionPolicy policy) throws GatewayException {
ThreatProtectionEvent event = new ThreatProtectionEvent(APIMgtConstants.GatewayEventTypes.THREAT_PROTECTION_POLICY_UPDATE);
event.setPolicy(policy);
publishToThreatProtectionTopic(event);
}
use of org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method deleteThreatProtectionPolicy.
/**
* {@inheritDoc}
*/
@Override
public void deleteThreatProtectionPolicy(ThreatProtectionPolicy policy) throws GatewayException {
ThreatProtectionEvent event = new ThreatProtectionEvent(APIMgtConstants.GatewayEventTypes.THREAT_PROTECTION_POLICY_DELETE);
event.setPolicy(policy);
publishToThreatProtectionTopic(event);
}
use of org.wso2.carbon.apimgt.core.models.events.ThreatProtectionEvent in project carbon-apimgt by wso2.
the class APIGatewayPublisherImpl method addThreatProtectionPolicy.
/**
* {@inheritDoc}
*/
@Override
public void addThreatProtectionPolicy(ThreatProtectionPolicy policy) throws GatewayException {
ThreatProtectionEvent event = new ThreatProtectionEvent(APIMgtConstants.GatewayEventTypes.THREAT_PROTECTION_POLICY_ADD);
event.setPolicy(policy);
publishToThreatProtectionTopic(event);
}
Aggregations