Package javax.servlet.sip

Examples of javax.servlet.sip.ProxyBranch


    protected boolean dialogRecordRoute() {
        if (!hasBestResponse()) {
            throw new IllegalStateException("No established dialog");
        }

        ProxyBranch branch = findBranch(_bestResponse.getRequest()
                                                     .getRequestURI());

        if (branch == null) {
            throw new IllegalStateException(
                "Branch object for best response is missing");
        }

        return branch.getRecordRoute();
    }
View Full Code Here


        final int[] anInt = new int[] { -1 };

        if (proxyBranchListeners.size() > 0) {
            // Create a dynamic proxy object that acts as a proxy for this ProcyBranch.
            // calls to setProxyBranchTimeout are intercepted.
            ProxyBranch proxyBranchDynamicProxy = (ProxyBranch) Proxy.newProxyInstance(getClass()
                                                                                           .getClassLoader(),
                    new Class[] { ProxyBranch.class },
                    new InvocationHandler() {
                        public Object invoke(Object proxy, Method method,
                            Object[] args) throws Throwable {
View Full Code Here

                    setState(State.EARLY);
                } else if (((status >= 200) && (status <= 299)) &&
                        SipFactoryImpl.isDialogCreational(method)) {
                    setState(State.CONFIRMED);
                    if (type == Type.Proxy) {
                        ProxyBranch pb = resp.getProxyBranch();
                        if (pb != null) {
                            if (!pb.getRecordRoute()) {
                                markReadyToInvalidate();
                            }
                        } else if (!resp.getProxy().getRecordRoute()) {
                            markReadyToInvalidate();
                        }
View Full Code Here

    private void doNonDialogIWR(SipServletResponse resp,
                                PathNode.Type type) {
        String method = resp.getRequest().getMethod();
        if (!SipFactoryImpl.isDialogCreational(method) && getDF() == null) {
            if (type == Type.Proxy) {
                ProxyBranch pb = resp.getProxyBranch();
                if (pb != null) {
                    ProxyImpl.ProxyFacade p = ((ProxyBranchImpl) pb).getProxy();
                    if (p != null && p.hasBestRepsonse()) {
                        markReadyToInvalidate();
                    }
View Full Code Here

TOP

Related Classes of javax.servlet.sip.ProxyBranch

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.