Examples of ResponseEvent


Examples of com.ettrema.event.ResponseEvent

    private void fireResponseEvent(Request request, Response response) throws ConflictException, BadRequestException, NotAuthorizedException {
        if (eventManager == null) {
            return;
        }
        eventManager.fireEvent(new ResponseEvent(request, response));

    }
View Full Code Here

Examples of javax.sip.ResponseEvent

        if (sipDialog != null && sipResponse.getStatusCode() != 100
                && sipResponse.getTo().getTag() != null) {
            sipDialog.setLastResponse(transaction, sipResponse);
        }

        ResponseEvent responseEvent = new javax.sip.ResponseEvent(sipProvider,
                (ClientTransaction) transaction, sipDialog, (Response) sipResponse);

        sipProvider.handleEvent(responseEvent, transaction);

    }
View Full Code Here

Examples of javax.sip.ResponseEvent

                        "could not find tx, handling statelessly Dialog =  " + dialog);
            }
            // Pass the response up to the application layer to handle
            // statelessly.

            ResponseEvent sipEvent = new ResponseEvent(sipProvider, transaction, dialog,
                    (Response) response);

            sipProvider.handleEvent(sipEvent, transaction);
            return;
        }

        ResponseEvent responseEvent = null;

        // Here if there is an assigned dialog
        responseEvent = new javax.sip.ResponseEvent(sipProvider, (ClientTransaction) transaction,
                dialog, (Response) response);
        // Set the Dialog for the response.
View Full Code Here

Examples of javax.sip.ResponseEvent

        if (sipDialog != null && sipResponse.getStatusCode() != 100
                && sipResponse.getTo().getTag() != null) {
            sipDialog.setLastResponse(transaction, sipResponse);
        }

        ResponseEvent responseEvent = new javax.sip.ResponseEvent(sipProvider,
                (ClientTransaction) transaction, sipDialog, (Response) sipResponse);

        sipProvider.handleEvent(responseEvent, transaction);

    }
View Full Code Here

Examples of javax.sip.ResponseEvent

                        "could not find tx, handling statelessly Dialog =   " + dialog);
            }
            // Pass the response up to the application layer to handle
            // statelessly.

            ResponseEvent sipEvent = new ResponseEvent(sipProvider, transaction, dialog,
                    (Response) response);

            sipProvider.handleEvent(sipEvent, transaction);
            return;
        }

        ResponseEvent responseEvent = null;

        // Here if there is an assigned dialog
        responseEvent = new javax.sip.ResponseEvent(sipProvider, (ClientTransaction) transaction,
                dialog, (Response) response);
        // Set the Dialog for the response.
View Full Code Here

Examples of javax.sip.ResponseEvent

        if (sipDialog != null && sipResponse.getStatusCode() != 100
                && sipResponse.getTo().getTag() != null) {
            sipDialog.setLastResponse(transaction, sipResponse);
        }

        ResponseEvent responseEvent = new javax.sip.ResponseEvent(sipProvider,
                (ClientTransaction) transaction, sipDialog, (Response) sipResponse);

        sipProvider.handleEvent(responseEvent, transaction);

    }
View Full Code Here

Examples of org.asteriskjava.manager.event.ResponseEvent

        // These events are handled here at first:

        // Dispatch ResponseEvents to the appropriate responseEventListener
        if (event instanceof ResponseEvent)
        {
            ResponseEvent responseEvent;
            String internalActionId;

            responseEvent = (ResponseEvent) event;
            internalActionId = responseEvent.getInternalActionId();
            if (internalActionId != null)
            {
                synchronized (responseEventListeners)
                {
                    ManagerEventListener listener;
View Full Code Here

Examples of org.asteriskjava.manager.event.ResponseEvent

            synchronized (events)
            {
                // should always be a ResponseEvent, anyway...
                if (event instanceof ResponseEvent)
                {
                    ResponseEvent responseEvent;

                    responseEvent = (ResponseEvent) event;
                    events.addEvent(responseEvent);
                }
View Full Code Here

Examples of org.asteriskjava.manager.event.ResponseEvent

        // These events are handled here at first:

        // Dispatch ResponseEvents to the appropriate responseEventListener
        if (event instanceof ResponseEvent)
        {
            ResponseEvent responseEvent;
            String internalActionId;

            responseEvent = (ResponseEvent) event;
            internalActionId = responseEvent.getInternalActionId();
            if (internalActionId != null)
            {
                synchronized (responseEventListeners)
                {
                    ManagerEventListener listener;
View Full Code Here

Examples of org.asteriskjava.manager.event.ResponseEvent

            synchronized (events)
            {
                // should always be a ResponseEvent, anyway...
                if (event instanceof ResponseEvent)
                {
                    ResponseEvent responseEvent;

                    responseEvent = (ResponseEvent) event;
                    events.addEvent(responseEvent);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.