Search in sources :

Example 6 with CreateActivityException

use of net.java.slee.resource.diameter.base.CreateActivityException in project jain-slee.diameter by RestComm.

the class DiameterRfResourceAdaptor method processRequest.

// NetworkReqListener Implementation -----------------------------------
/*
   * (non-Javadoc)
   * @see org.jdiameter.api.NetworkReqListener#processRequest(org.jdiameter.api.Request)
   */
public Answer processRequest(Request request) {
    DiameterActivityImpl activity;
    try {
        activity = (DiameterActivityImpl) raProvider.createActivity(request);
        if (activity instanceof RfServerSessionActivityImpl) {
            RfServerSessionActivityImpl assai = (RfServerSessionActivityImpl) activity;
            ((ServerRfSessionImpl) assai.getSession()).processRequest(request);
        } else if (activity instanceof RfClientSessionActivityImpl) {
            RfClientSessionActivityImpl assai = (RfClientSessionActivityImpl) activity;
            ((ClientRfSessionImpl) assai.getSession()).processRequest(request);
        }
    } catch (CreateActivityException e) {
        tracer.severe("Failure trying to create Rf Activity.", e);
    }
    // returning null so we can answer later
    return null;
}
Also used : ServerRfSessionImpl(org.jdiameter.server.impl.app.rf.ServerRfSessionImpl) DiameterActivityImpl(org.mobicents.slee.resource.diameter.base.DiameterActivityImpl) CreateActivityException(net.java.slee.resource.diameter.base.CreateActivityException)

Aggregations

CreateActivityException (net.java.slee.resource.diameter.base.CreateActivityException)6 DiameterActivity (net.java.slee.resource.diameter.base.DiameterActivity)5 CreditControlServerSession (net.java.slee.resource.diameter.cca.CreditControlServerSession)1 GqServerSessionActivity (net.java.slee.resource.diameter.gq.GqServerSessionActivity)1 GxServerSessionActivity (net.java.slee.resource.diameter.gx.GxServerSessionActivity)1 RoServerSessionActivity (net.java.slee.resource.diameter.ro.RoServerSessionActivity)1 RxServerSessionActivity (net.java.slee.resource.diameter.rx.RxServerSessionActivity)1 ServerCCASessionImpl (org.jdiameter.server.impl.app.cca.ServerCCASessionImpl)1 GqServerSessionImpl (org.jdiameter.server.impl.app.gq.GqServerSessionImpl)1 ServerGxSessionImpl (org.jdiameter.server.impl.app.gx.ServerGxSessionImpl)1 ServerRfSessionImpl (org.jdiameter.server.impl.app.rf.ServerRfSessionImpl)1 ServerRoSessionImpl (org.jdiameter.server.impl.app.ro.ServerRoSessionImpl)1 ServerRxSessionImpl (org.jdiameter.server.impl.app.rx.ServerRxSessionImpl)1 DiameterActivityImpl (org.mobicents.slee.resource.diameter.base.DiameterActivityImpl)1