public void onFault(MessageContext synCtx) { // is this really a fault or a timeout/connection close etc? if (isTimeout(synCtx)) { getContext().onTimeout(); } else if (isSuspendFault(synCtx)) { getContext().onFault(); } // this should be an ignored error if we get here setErrorOnMessage(synCtx, null, null); super.onFault(synCtx); }
public void onFault(MessageContext synCtx) { // is this really a fault or a timeout/connection close etc? if (isTimeout(synCtx)) { getContext().onTimeout(); } else if (isSuspendFault(synCtx)) { getContext().onFault(); } // this should be an ignored error if we get here setErrorOnMessage(synCtx, null, null); super.onFault(synCtx); }
public void send(MessageContext synCtx) { if (getParentEndpoint() == null && !readyToSend()) { // if the this leaf endpoint is too a root endpoint and is in inactive informFailure(synCtx, SynapseConstants.ENDPOINT_ADDRESS_NONE_READY, "Currently , Address endpoint : " + getContext()); } else { super.send(synCtx); } } }
public void onFault(MessageContext synCtx) { // is this an actual leaf endpoint if (getParentEndpoint() != null) { // is this really a fault or a timeout/connection close etc? if (isTimeout(synCtx)) { getContext().onTimeout(); } else if (isSuspendFault(synCtx)) { getContext().onFault(); } } setErrorOnMessage(synCtx, null, null); super.onFault(synCtx); }
public void send(MessageContext synCtx) { // For setting Car name (still for Proxy) logSetter(); executeEpTypeSpecificFunctions(synCtx); if (getParentEndpoint() == null && !readyToSend()) { // if the this leaf endpoint is too a root endpoint and is in inactive informFailure(synCtx, SynapseConstants.ENDPOINT_ADDRESS_NONE_READY, "Currently , Address endpoint : " + getContext()); } else { super.send(synCtx); } }
/** * Is a leaf level endpoint active? For a group endpoint this means at least one is active * @return true if at least one is active in a group endpoint; for a leaf - if it is currently active * @throws Exception */ public boolean isActive() throws Exception { if (endpoint.getChildren() != null) { return getActiveChildren() > 0; } else if (endpoint.getContext() != null) { return endpoint.getContext().isState(EndpointContext.ST_ACTIVE); } return false; }
public void send(MessageContext synCtx) { if (getParentEndpoint() == null && !readyToSend()) { // if the this leaf endpoint is too a root endpoint and is in inactive informFailure(synCtx, SynapseConstants.ENDPOINT_ADDRESS_NONE_READY, "Currently , WSDL endpoint : " + getContext()); } else { super.send(synCtx); } }
public boolean readyToSend() { if (getContext().isState(EndpointContext.ST_OFF)) { return false; } for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { currentEndpoint = endpoint; return true; } } return false; }
public void send(MessageContext synCtx) { if (getParentEndpoint() == null && !readyToSend()) { // if the this leaf endpoint is too a root endpoint and is in inactive informFailure(synCtx, SynapseConstants.ENDPOINT_ADDRESS_NONE_READY, "Currently , Default endpoint : " + getContext()); } else { super.send(synCtx); } } }
public boolean readyToSend() { for (Endpoint endpoint : getChildren()) { if (endpoint.readyToSend()) { currentEndpoint = endpoint; return true; } } return false; }
@Override public void init(SynapseEnvironment synapseEnvironment) { if (!initialized) { super.init(synapseEnvironment); } this.env = synapseEnvironment; this.setContentAware(true); }
/** * Method to create an endpoint view with a mocked endpoint with the specified number of children. * * @param numberOfChildren the child endpoints inside the endpoint attached to the end point view. If * specified as 0, the children list will be null * @return the created end point view */ private EndpointView createMockEndPointView(int numberOfChildren) { AbstractEndpoint abstractEndpoint = createMockEndPoint(numberOfChildren); return new EndpointView("endpoint", abstractEndpoint); }
public void onSuccess() { if (getContext() != null) { getContext().onSuccess(); } }
public void onSuccess() { if (getContext() != null) { getContext().onSuccess(); } }
public void onSuccess() { if (getContext() != null) { getContext().onSuccess(); } }
/** * Is a leaf level endpoint active? For a group endpoint this means at least one is active * @return true if at least one is active in a group endpoint; for a leaf - if it is currently active * @throws Exception */ public boolean isActive() throws Exception { if (endpoint.getChildren() != null) { return getActiveChildren() > 0; } else if (endpoint.getContext() != null) { return endpoint.getContext().isState(EndpointContext.ST_ACTIVE); } return false; }
public void send(MessageContext synCtx) { // For setting Car name (still for Proxy) logSetter(); if (getParentEndpoint() == null && !readyToSend()) { // if the this leaf endpoint is too a root endpoint and is in inactive informFailure(synCtx, SynapseConstants.ENDPOINT_ADDRESS_NONE_READY, "Currently , Address endpoint : " + getContext()); } else { super.send(synCtx); } } }
public void send(MessageContext synCtx) { // For setting Car name (still for Proxy) logSetter(); if (getParentEndpoint() == null && !readyToSend()) { // if the this leaf endpoint is too a root endpoint and is in inactive informFailure(synCtx, SynapseConstants.ENDPOINT_ADDRESS_NONE_READY, "Currently , WSDL endpoint : " + getContext()); } else { super.send(synCtx); } }
public void onSuccess() { if (getContext() != null) { getContext().onSuccess(); } }
public void onSuccess() { if (getContext() != null) { getContext().onSuccess(); } }