public String getHandler() { return getSipSession().getHandler(); }
/** * 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); } } }
@Override public boolean authorize(MobicentsSipServletRequest request) { String servletInfoName = request.getSipSession().getHandler(); ServletInfo servletInfo = this.getDeploymentInfoFacade().getSipServlets().get(servletInfoName); return sipSecurityUtils.authorize(request, servletInfo, this.getSipApplicationDispatcher().getSipStack()); }
@Override public boolean authorize(MobicentsSipServletRequest request) { String servletInfoName = request.getSipSession().getHandler(); ServletInfo servletInfo = this.getDeploymentInfoFacade().getSipServlets().get(servletInfoName); return sipSecurityUtils.authorize(request, servletInfo, this.getSipApplicationDispatcher().getSipStack()); }
public static void callServlet(MobicentsSipServletResponse response) throws ServletException, IOException { final MobicentsSipSession session = response.getSipSession(); final String sessionHandler = session.getHandler(); final MobicentsSipApplicationSession sipApplicationSessionImpl = session.getSipApplicationSession(); final SipContext sipContext = sipApplicationSessionImpl.getSipContext(); logger.debug("Dispatching response " + response.toString() + " to following App/servlet => " + session.getKey().getApplicationName()+ "/" + session.getHandler() + " on following sip session " + session.getId());
public static void callServlet(MobicentsSipServletRequest request) throws ServletException, IOException { final MobicentsSipSession session = request.getSipSession(); final String sessionHandler = session.getHandler(); final MobicentsSipApplicationSession sipApplicationSessionImpl = session.getSipApplicationSession(); final SipContext sipContext = sipApplicationSessionImpl.getSipContext(); logger.debug("Dispatching request " + request.toString() + " to following App/servlet => " + session.getKey().getApplicationName()+ "/" + session.getHandler() + " on following sip session " + session.getId());
sipSessionImpl.setSessionCreatingTransactionRequest(sipServletRequest); String sipSessionHandlerName = sipSessionImpl.getHandler(); if(logger.isDebugEnabled()) { logger.debug("sipSessionHandlerName = " + sipSessionHandlerName);
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);
String servletName = request.getSipSession().getHandler(); if (sipSecurity.findMethod(request.getMethod()) && sipSecurity.findServletName(servletName)) { boolean constraintSatisfied = false;
String servletName = request.getSipSession().getHandler(); if (sipSecurity.findMethod(request.getMethod()) && sipSecurity.findServletName(servletName)) { boolean constraintSatisfied = false;
String servletName = request.getSipSession().getHandler(); if(sipSecurity.findMethod(request.getMethod()) && sipSecurity.findServletName(servletName)) {
String servletName = request.getSipSession().getHandler(); if(sipSecurity.findMethod(request.getMethod()) && sipSecurity.findServletName(servletName)) {
sipSessionImpl.setHandler(parentSipSession.getHandler()); } catch (ServletException 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());
session.setHandler(originalSession.getHandler());
if(SipSessionRoutingType.CURRENT_SESSION.equals(sipSessionRoutingType)) { String handlerName = session.getHandler(); if(handlerName != null) { final String branch = JainSipUtils.createBranch(session.getSipApplicationSession().getKey().getId(), sipApplicationDispatcher.getHashFromApplicationName(session.getKey().getApplicationName()));