public Session getNewSession() throws InternalException { Session session = sessionFactory.getNewSession(); sessionCreated(session); return session; }
public Session getNewSession(String sessionId) throws InternalException { Session session = sessionFactory.getNewSession(sessionId); sessionCreated(session); return session; }
public Session getNewSession(String sessionId) throws InternalException { Session session = sessionFactory.getNewSession(sessionId); sessionCreated(session); return session; }
public Session getNewSession() throws InternalException { Session session = sessionFactory.getNewSession(); sessionCreated(session); return session; }
public AuthClientSessionActivity createAuthenticationClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException { try { ClientAuthSession session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(null, authApplicationIds.get(0), ClientAuthSession.class); sessionCreated(session); return (AuthClientSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Authentication Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Authentication Activity", e); } }
public AuthClientSessionActivity createAuthenticationClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException { try { ClientAuthSession session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(null, authApplicationIds.get(0), ClientAuthSession.class); sessionCreated(session); return (AuthClientSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Authentication Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Authentication Activity", e); } }
public AuthServerSessionActivity createAuthenticationServerActivity(Request request) throws CreateActivityException { ServerAuthSession session = null; try { session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(null, authApplicationIds.get(0), ServerAuthSession.class, new Object[]{request}); sessionCreated(session); return (AuthServerSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Server Authentication Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Server Authentication Activity", e); } }
public AuthServerSessionActivity createAuthenticationServerActivity(Request request) throws CreateActivityException { ServerAuthSession session = null; try { session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(null, authApplicationIds.get(0), ServerAuthSession.class, new Object[]{request}); sessionCreated(session); return (AuthServerSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Server Authentication Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Server Authentication Activity", e); } }
public AccountingClientSessionActivity createAccountingClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException { try { // FIXME: alexandre: This must be fixed, we need way to specify Application-Id! ClientAccSession session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(null, acctApplicationIds.get(0), ClientAccSession.class); sessionCreated(session); return (AccountingClientSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Client Accounting Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Client Accounting Activity", e); } }
public AccountingClientSessionActivity createAccountingClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException { try { // FIXME: alexandre: This must be fixed, we need way to specify Application-Id! ClientAccSession session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(null, acctApplicationIds.get(0), ClientAccSession.class); sessionCreated(session); return (AccountingClientSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Client Accounting Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Client Accounting Activity", e); } }
public AccountingServerSessionActivity createAccountingServerActivity(Request req) throws CreateActivityException { ServerAccSession session = null; try { ApplicationId appId = req.getApplicationIdAvps().isEmpty() ? null : req.getApplicationIdAvps().iterator().next(); session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(req.getSessionId(), appId, ServerAccSession.class, req); if (session == null) { throw new CreateActivityException("Got NULL Session while creating Server Accounting Activity"); } sessionCreated(session); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Server Accounting Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Server Accounting Activity", e); } return (AccountingServerSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); }
public AccountingServerSessionActivity createAccountingServerActivity(Request req) throws CreateActivityException { ServerAccSession session = null; try { ApplicationId appId = req.getApplicationIdAvps().isEmpty() ? null : req.getApplicationIdAvps().iterator().next(); session = ((ISessionFactory) stack.getSessionFactory()).getNewAppSession(req.getSessionId(), appId, ServerAccSession.class, req); if (session == null) { throw new CreateActivityException("Got NULL Session while creating Server Accounting Activity"); } sessionCreated(session); } catch (InternalException e) { throw new CreateActivityException("Internal exception while creating Server Accounting Activity", e); } catch (IllegalDiameterStateException e) { throw new CreateActivityException("Illegal Diameter State exception while creating Server Accounting Activity", e); } return (AccountingServerSessionActivity) activities.get(getActivityHandle(session.getSessions().get(0).getSessionId())); }
/** * * @param destinationHost * @param destinationRealm * @param sessionId * @return * @throws CreateActivityException */ public DiameterActivity createActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm, String sessionId) throws CreateActivityException { try { Session session = sessionId != null ? proxySessionFactory.getNewSession(sessionId) : proxySessionFactory.getNewSession(); sessionCreated(session); return activities.get(getActivityHandle(session.getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Failure obtaining session for creating activity.", e); } }
/** * * @param destinationHost * @param destinationRealm * @param sessionId * @return * @throws CreateActivityException */ public DiameterActivity createActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm, String sessionId) throws CreateActivityException { try { Session session = sessionId != null ? proxySessionFactory.getNewSession(sessionId) : proxySessionFactory.getNewSession(); sessionCreated(session); return activities.get(getActivityHandle(session.getSessionId())); } catch (InternalException e) { throw new CreateActivityException("Failure obtaining session for creating activity.", e); } }