Package com.ericsson.ssa.container.sim

Examples of com.ericsson.ssa.container.sim.ServletDispatcher


     * Attaches a <code>SipServletInvokerValve</code> to a <code>Context</code>
     * pipeline and registers the valve with the SIM. The initialization steps
     * of the valve are also executed.
     */
    private void initializeServletDispatcher() {
        ServletDispatcher dispatcher = new ServletDispatcher(convergedContext.getSipSessionManager());
        dispatcher.setSipApplicationModel(convergedContext.getSipApplication());
        context.getPipeline().addValve(dispatcher);

        // Initialize all the servlet wrappers upon initialization of the context.
        // Must do this after adding the valve to the pipeline, so that the parent
        // container of the valve and it's Loader are initialized.
        dispatcher.setSipFactory(convergedContext.getSipFactory());
        dispatcher.initialize();
        convergedContext.setDispatcher(dispatcher);
    }
View Full Code Here


        AuthModule authModule = null;
        if (req.isInitial()) {
            req.pushApplicationDispatcher(this);
        } else {
            SipApplicationSessionImpl sas = req.getApplicationSessionImpl();
            ServletDispatcher sd = sas.getServletDispatcher();
            String servletToInvoke = req.getSessionImpl().getHandler();
            authModule = sd.getAuthModule();
            try {
                if (!verifyRequest(req, authModule, servletToInvoke)) {
                    return;
                }
            } catch (IOException ex) {
View Full Code Here

        LayerHelper.next(req, this, _nextLayer);
    }

    public boolean verifyRequest(SipServletRequestImpl req) {
        SipApplicationSessionImpl sas = req.getApplicationSessionImpl();
        ServletDispatcher sd = sas.getServletDispatcher();
        String servletToInvoke = req.getSessionImpl().getHandler();
        AuthModule authModule = sd.getAuthModule();
        try {
            if (!verifyRequest(req, authModule, servletToInvoke)) {
                return false;
            }
        } catch (IOException ex) {
View Full Code Here

            sts.appendTargetSet(targetSet);
        }
    }

    protected SipApplication getSipApplication() {
        ServletDispatcher dispatcher = ApplicationDispatcher.getInstance()
                                                            .getServletDispatcher(getApplicationSessionName());

        return (dispatcher == null) ? null : dispatcher.getSipApplicationModel();
    }
View Full Code Here

        }
    }

    public void setHandler(String name) throws ServletException {
        validateSessionState();
        ServletDispatcher servletDispatcher;
        servletDispatcher = getPFieldSipApplicationSession()
                                .getServletDispatcher();

        if (servletDispatcher != null) {
            if ((name == null) || !servletDispatcher.findServlet(name)) {
                throw new ServletException(
                    "Could not found the servlet to set it as a handler.");
            }
        } else {
            if (log.isLoggable(Level.FINE)) {
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.container.sim.ServletDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.