Search in sources :

Example 1 with ServerRfSessionImpl

use of org.jdiameter.server.impl.app.rf.ServerRfSessionImpl 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)1 ServerRfSessionImpl (org.jdiameter.server.impl.app.rf.ServerRfSessionImpl)1 DiameterActivityImpl (org.mobicents.slee.resource.diameter.base.DiameterActivityImpl)1