Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.DialogFragment


                DialogSet.registerEarlyDialog(req);
            }
        }

        // creates a new sip session
        DialogFragment d = req.getDialog();
        s = m_SipSessionManager.createSipSession(d.getDialogSet(), req.getToImpl(),
                appSess, handlerName);
        // Initial request from outside the container.
        // So, swap the local-remote.
        s.swapLocalRemote();
        if (handlerName != null && !handlerName.equals("")) {
            TargettedRequestHandler.linkCorrespondingSession(req, s);
        }
        s.setSubscriberURI(subscriberURI);

        req.setSession(s);

        final DialogLifeCycle dialogLifeCycle = d.getDialogLifeCycle();
        dialogLifeCycle.associateTransaction(req.getTransactionId());
        dialogLifeCycle.initUnitOfWork(appSess);
        dialogLifeCycle.setThreadLocalUnitOfWork();
        if (appSess != null) {
            appSess.setShouldBePersisted();
View Full Code Here


        try {
            store = this.getDialogFragmentStore();
            if (store == null)
                return null;

            DialogFragment dialogFragment = null;
            try {
                SASLockStatus.setSASLocked(false);
                if (SecurityUtil.isPackageProtectionEnabled()){
                    try{
                        dialogFragment = (DialogFragment) AccessController.doPrivileged(new PrivilegedStoreLoadDialogFragment(id, version, store));
View Full Code Here

        return dialogFragments;
    }

    public ReplicableEntity findDialogFragmentAndPassivate(String id) {
        HADialogFragment haDialogFragment = null;
        DialogFragment dialogFragment
                = findDialogFragmentFromCacheOnly(id);
        if (dialogFragment instanceof HADialogFragment) {
            haDialogFragment = (HADialogFragment) dialogFragment;
            if (!haDialogFragment.isForegroundLocked()) {
                processLoadReceivedDialogFragment((String) id);
View Full Code Here

        }
    }

    public void processLoadReceivedDialogFragment(String id) {
        //remove active dialogfragment if present and not locked
        DialogFragment dialogFragment
            = findDialogFragmentFromCacheOnly(id);
        if(dialogFragment != null
                && !dialogFragment.isForegroundLocked()) {
            this.removeDialogFragmentFromCache(dialogFragment, false);
        }
    }
View Full Code Here

            super.removeDialogFragmentFromCache(df, hasTimedOut);
        }
    }   
   
    protected void clearFromDialogFragmentManagerCache(String id, boolean hasTimedOut) {
        DialogFragment df = super.findDialogFragmentFromCacheOnly(id);
        if(df != null) {                              
            this.removeDialogFragmentFromCache(df, hasTimedOut);
        }
    }
View Full Code Here

            return;
        }

        Iterator it = dialogFragments.values().iterator();
        while (it.hasNext()) {
            DialogFragment fragment = (DialogFragment) it.next();
            //by virtue of being in the cache it is considered to
            //but since invalidate is called before removal we must check           
            if(fragment.isValid()
                && (fragment.getDialogId() != null)
                && isDialogFragmentOlderThan(fragment, repairStartTime)) {
                if(fragment.lockBackground()) {
                    try {
                        ((HADialogFragment)fragment).setReplicated(false);
                        ((HADialogFragment)fragment).setDirty(true);
                        saveDialogFragment(fragment);
                    } catch (IOException ex) {
                        _logger.log(Level.WARNING, "df_save_during_repair_error", fragment.toString());
                        _logger.log(Level.WARNING, ex.getMessage(), ex);
                    } finally {
                        fragment.unlockBackground();
                    }
                }                               
      }           
        }
    }
View Full Code Here

    public long getTransactionStartTime() {
        return _transactionStartedTimestamp;
    }

    protected void dispatchInUOW(Dispatcher aDispatcher, SipServletRequestImpl aMessage) {
      DialogFragment dialog = aMessage.getDialog();
      dispatchInUOW(aDispatcher, aMessage, dialog);
    }
View Full Code Here

      DialogFragment dialog = aMessage.getDialog();
      dispatchInUOW(aDispatcher, aMessage, dialog);
    }

    protected void dispatchInUOW(Dispatcher aDispatcher, SipServletResponseImpl aMessage) {
      DialogFragment dialog = aMessage.getDialog();
      dispatchInUOW(aDispatcher, aMessage, dialog);
    }
View Full Code Here

    }
   
    private void associateTransactionWithDialog(Transaction t) {
        SipServletRequestImpl req = t.getRequest();
        if (req == null) return;
        DialogFragment dialog = req.getDialog();
        if (dialog == null) return;
        dialog.getDialogLifeCycle().associateTransaction(t.getTransactionId());
    }
View Full Code Here

        if (dialog == null) return;
        dialog.getDialogLifeCycle().associateTransaction(t.getTransactionId());
    }
   
    private void removeTransactionFromDialog(Transaction t, boolean client) {
        DialogFragment dialog = t.getDialog();
        if (dialog == null) {
            if (log.isLoggable(Level.FINE)) {
                log.log(Level.FINE, "Transaction lacked dialog: " + t.getTransactionId() + " (the dialog has most likely been removed already)");
            }

            return;
        }
        dialog.getDialogLifeCycle().onTransactionRemoved(t.getTransactionId(), client);
    }
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.sip.DialogFragment

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.