Search in sources :

Example 1 with ProfileUpdateRequestImpl

use of org.jdiameter.common.impl.app.sh.ProfileUpdateRequestImpl in project jain-slee.diameter by RestComm.

the class ShClientActivityImpl method sendProfileUpdateRequest.

public void sendProfileUpdateRequest(ProfileUpdateRequest message) throws IOException {
    try {
        DiameterMessageImpl msg = (DiameterMessageImpl) message;
        clientSession.sendProfileUpdateRequest(new ProfileUpdateRequestImpl((Request) msg.getGenericData()));
    } catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
        throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
    } catch (Exception e) {
        throw new IOException("Failed to send message, due to: " + e.getLocalizedMessage());
    }
}
Also used : ProfileUpdateRequestImpl(org.jdiameter.common.impl.app.sh.ProfileUpdateRequestImpl) Request(org.jdiameter.api.Request) ProfileUpdateRequest(net.java.slee.resource.diameter.sh.events.ProfileUpdateRequest) SubscribeNotificationsRequest(net.java.slee.resource.diameter.sh.events.SubscribeNotificationsRequest) UserDataRequest(net.java.slee.resource.diameter.sh.events.UserDataRequest) IOException(java.io.IOException) DiameterMessageImpl(org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException) IOException(java.io.IOException) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)

Aggregations

IOException (java.io.IOException)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 ProfileUpdateRequest (net.java.slee.resource.diameter.sh.events.ProfileUpdateRequest)1 SubscribeNotificationsRequest (net.java.slee.resource.diameter.sh.events.SubscribeNotificationsRequest)1 UserDataRequest (net.java.slee.resource.diameter.sh.events.UserDataRequest)1 Request (org.jdiameter.api.Request)1 ProfileUpdateRequestImpl (org.jdiameter.common.impl.app.sh.ProfileUpdateRequestImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1