Search in sources :

Example 1 with JLocationInfoRequestImpl

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

the class CxDxClientSessionImpl method sendLocationInfoRequest.

/* (non-Javadoc)
   * @see net.java.slee.resource.diameter.cxdx.CxDxClientSession#sendLocationInfoRequest(net.java.slee.resource.diameter.cxdx.events.LocationInfoRequest)
   */
public void sendLocationInfoRequest(LocationInfoRequest locationInfoRequest) throws IOException {
    try {
        DiameterMessageImpl msg = (DiameterMessageImpl) locationInfoRequest;
        appSession.sendLocationInformationRequest(new JLocationInfoRequestImpl(msg.getGenericData()));
    } catch (org.jdiameter.api.validation.AvpNotAllowedException anae) {
        throw new AvpNotAllowedException(anae.getMessage(), anae.getAvpCode(), anae.getVendorId());
    } catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
Also used : JLocationInfoRequestImpl(org.jdiameter.common.impl.app.cxdx.JLocationInfoRequestImpl) IOException(java.io.IOException) DiameterMessageImpl(org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException) InternalException(org.jdiameter.api.InternalException) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 InternalException (org.jdiameter.api.InternalException)1 JLocationInfoRequestImpl (org.jdiameter.common.impl.app.cxdx.JLocationInfoRequestImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1