Package com.ericsson.ssa.config

Examples of com.ericsson.ssa.config.SipFactoryFacade


    /*
     * Bind the global SipFactoryFacade, SipSessionsUtil and TimerService to
     * JNDI.
     */
    public void bindSipResources() {
        SipFactoryFacade sipFactory = new SipFactoryFacade();

        SipFactoryMap.getInstance()
        .addSipFactoryFacade(GLOBAL_SIP_FACTORY_JNDI_NAME, sipFactory);

     
View Full Code Here


            throw new IllegalStateException();
        }

        SipServletRequestImpl origRequestImpl = (SipServletRequestImpl) origRequest;

        SipFactoryFacade sfImpl = (SipFactoryFacade) _sf;
        SipApplicationSessionImpl sappSessImpl = (SipApplicationSessionImpl) origRequest.getApplicationSession();
        SipServletRequestImpl copiedReq = null;
        copiedReq = sfImpl.createRequestImpl(sappSessImpl,
                origRequestImpl.getMethod(), origRequestImpl.getFromImpl(),
                origRequestImpl.getToImpl(), false, origRequestImpl);

        if (origRequest.getMethod().equals("REGISTER")) {
            Header cnct = origRequestImpl.getRawHeader(Header.CONTACT);
View Full Code Here

        SipServletRequest copiedReq = null;

        // need special treatment for from and to headers
        // Set<String> from = headerMap != null ? headerMap.remove("From") : null;
        // Set<String> to = headerMap != null ? headerMap.remove("To") : null;
        SipFactoryFacade sfImpl = (SipFactoryFacade) _sf;
        SipApplicationSessionImpl sappSessImpl = (SipApplicationSessionImpl) origRequest.getApplicationSession();

        try {
            if ((from != null) && (to != null)) {
                copiedReq = sfImpl.createRequestImpl(sappSessImpl,
                        origRequest.getMethod(),
                        sfImpl.createAddress(from.iterator().next()),
                        sfImpl.createAddress(to.iterator().next()), false,
                        origRequestImpl);
            } else if (from != null) {
                copiedReq = sfImpl.createRequestImpl(sappSessImpl,
                        origRequest.getMethod(),
                        sfImpl.createAddress(from.iterator().next()),
                        origRequestImpl.getToImpl(), false, origRequestImpl);
            } else if (to != null) {
                copiedReq = sfImpl.createRequestImpl(sappSessImpl,
                        origRequest.getMethod(), origRequestImpl.getFromImpl(),
                        sfImpl.createAddress(to.iterator().next()), false,
                        origRequestImpl);
            } else {
                copiedReq = sfImpl.createRequestImpl(sappSessImpl,
                        origRequest.getMethod(), origRequestImpl.getFromImpl(),
                        origRequestImpl.getToImpl(), false, origRequestImpl);
            }
        } catch (ServletParseException e) {
            throw new IllegalArgumentException(e);
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.config.SipFactoryFacade

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.