Examples of onComplete()


Examples of org.apache.axis2.client.async.Callback.onComplete()

        String messageID = relatesTO.getValue();
        Callback callback = (Callback) callbackStore.get(messageID);
        AsyncResult result = new AsyncResult(messageCtx);

        if (callback != null) {
            callback.onComplete(result);
            callback.setComplete(true);
            //closing the tranport
        } else {
            throw new AxisFault("The Callback realtes to MessageID " + messageID + " is not found");
        }
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

        String messageID = relatesTO.getValue();
        Callback callback = (Callback) callbackStore.get(messageID);
        AsyncResult result = new AsyncResult(messageCtx);

        if (callback != null) {
            callback.onComplete(result);
            callback.setComplete(true);
            //closing the tranport
            ListenerManager.stop(messageCtx.getConfigurationContext(),
                    messageCtx.getTransportIn().getName().getLocalPart());
        } else {
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

            if (envelope.getBody().hasFault()) {
                AxisFault axisFault =
                        Utils.getInboundFaultFromMessageContext(msgContext);
                callback.onError(axisFault);
            } else {
                callback.onComplete(result);
            }
        } catch (Exception e) {
            callback.onError(e);
        finally {
            callback.setComplete(true);
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

            if (envelope.hasFault()) {
                AxisFault axisFault =
                        Utils.getInboundFaultFromMessageContext(msgContext);
                callback.onError(axisFault);
            } else {
                callback.onComplete(result);
            }
        } catch (Exception e) {
            callback.onError(e);
        finally {
            callback.setComplete(true);
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

            if (envelope.hasFault()) {
                AxisFault axisFault =
                        Utils.getInboundFaultFromMessageContext(msgContext);
                callback.onError(axisFault);
            } else {
                callback.onComplete(result);
            }
        } catch (Exception e) {
            callback.onError(e);
        finally {
            callback.setComplete(true);
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

        String messageID = relatesTO.getValue();
        Callback callback = (Callback) callbackStore.get(messageID);
        AsyncResult result = new AsyncResult(messgeCtx);
        if (callback != null) {
            callback.onComplete(result);
            callback.setComplete(true);
        } else {
            throw new AxisFault(
                    "The Callback realtes to MessageID " + messageID +
                    " is not found");
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

        SOAPEnvelope envelope = result.getResponseEnvelope();
        SOAPFault fault = envelope.getBody().getFault();

        if (fault == null) {
          // if there is not fault call the onComplete method
          callback.onComplete(result);
        } else {
          // else call the on error method with the fault
          AxisFault axisFault = new AxisFault(fault.getCode(), fault
              .getReason(), fault.getNode(), fault.getRole(),
              fault.getDetail());
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

        String messageID = relatesTO.getValue();
        Callback callback = (Callback) callbackStore.get(messageID);
        AsyncResult result = new AsyncResult(messageCtx);

        if (callback != null) {
            callback.onComplete(result);
            callback.setComplete(true);
        } else {
            throw new AxisFault("The Callback realtes to MessageID " + messageID + " is not found");
        }
    }
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

            SOAPEnvelope envelope = result.getResponseEnvelope();
            SOAPFault fault = envelope.getBody().getFault();

            if (fault == null) {
                // if there is not fault call the onComplete method
                callback.onComplete(result);
            } else {
                // else call the on error method with the fault
                AxisFault axisFault = Utils.getInboundFaultFromMessageContext(messageCtx);
                callback.onError(axisFault);
            }
View Full Code Here

Examples of org.apache.wicket.ajax.attributes.AjaxCallListener.onComplete()

    listener.onPrecondition("return somePrecondition();");
    listener.onBefore("alert('Before!');");
    listener.onAfter("alert('After!');");
    listener.onSuccess("alert('Success!');");
    listener.onFailure("alert('Failure!');");
    listener.onComplete("alert('Complete!');");
    attributes.getAjaxCallListeners().add(listener);

    Component component = Mockito.mock(Component.class);
    AbstractDefaultAjaxBehavior behavior = new AbstractDefaultAjaxBehavior()
    {
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.