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;
}
Aggregations