public void setHandler(String arg0) throws ServletException { getSipSession().setHandler(arg0); }
/** * set the handler for this request if none already exists. * The handler will be the main servlet of the sip context * @param request the session of this request will have its handler set. */ private void checkHandler(SipServletRequest request) { MobicentsSipSession sipSessionImpl = (MobicentsSipSession)request.getSession(); if(sipSessionImpl.getHandler() == null) { try { sipSessionImpl.setHandler(sipContext.getServletHandler()); // ((SipApplicationSessionImpl)sipSessionImpl.getApplicationSession()).setSipContext(sipContext); } catch (ServletException se) { //should never happen logger.error("Impossible to set the default handler on the newly created request "+ request.toString(),se); } } }
sipSessionImpl.setHandler(sipSessionHandlerName); } catch (ServletException e) {
final MobicentsSipSession newSession = (MobicentsSipSession) clonedRequest.getSipSession(); try { newSession.setHandler(originalSipSession.getHandler()); } catch (ServletException e) { logger.error("could not set the session handler while forwarding the request", e);
final MobicentsSipSession session = originalAppSession.getSipContext().getSipManager().getSipSession(key, true, this, originalAppSession); if(originalSession != null) { session.setHandler(originalSession.getHandler()); } else if(originalAppSession.getCurrentRequestHandler() != null) { session.setHandler(originalAppSession.getCurrentRequestHandler());
sipSessionImpl.setHandler(parentSipSession.getHandler()); } catch (ServletException e) {
session.setHandler(originalSession.getHandler());
MobicentsSipSession session = mobicentsSipApplicationSession.getSipContext().getSipManager(). getSipSession(key, true, this, mobicentsSipApplicationSession); session.setHandler(handler); session.setLocalParty(new AddressImpl(fromAddress, null, ModifiableRule.NotModifiable)); session.setRemoteParty(new AddressImpl(toAddress, null, ModifiableRule.NotModifiable));