@Override /** * Figure out the real endpoint we proxy for, and make sure its initialized */ public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); reLoadAndInitEndpoint(cc); }
@Override /** * Figure out the real endpoint we proxy for, and make sure its initialized */ public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); reLoadAndInitEndpoint(cc); }
/** * Get the real endpoint * * @param synCtx Message Context * @return real endpoint which is referred by the indirect endpoint */ public Endpoint getRealEndpoint(MessageContext synCtx) { reLoadAndInitEndpoint(((Axis2MessageContext) synCtx). getAxis2MessageContext().getConfigurationContext()); return realEndpoint; }
/** * Get the real endpoint * * @param synCtx Message Context * @return real endpoint which is referred by the indirect endpoint */ public Endpoint getRealEndpoint(MessageContext synCtx) { reLoadAndInitEndpoint(((Axis2MessageContext) synCtx). getAxis2MessageContext().getConfigurationContext()); return realEndpoint; }
/** * Send by calling to the real endpoint * @param synCtx the message to send */ public void send(MessageContext synCtx) { reLoadAndInitEndpoint(((Axis2MessageContext) synCtx). getAxis2MessageContext().getConfigurationContext()); if (realEndpoint != null) { realEndpoint.send(synCtx); } else { informFailure(synCtx, SynapseConstants.ENDPOINT_IN_DIRECT_NOT_READY, "Couldn't find the endpoint with the key : " + key); } }
/** * Send by calling to the real endpoint * @param synCtx the message to send */ public void send(MessageContext synCtx) { logSetter(); reLoadAndInitEndpoint(((Axis2MessageContext) synCtx). getAxis2MessageContext().getConfigurationContext()); if (realEndpoint != null) { realEndpoint.send(synCtx); } else { informFailure(synCtx, SynapseConstants.ENDPOINT_IN_DIRECT_NOT_READY, "Couldn't find the endpoint with the key : " + key); } }