public void send(MessageContext msgContext,
URL url,
String soapActionString) throws IOException {
// execute the HtttpMethodBase - a connection manager can be given for
// handle multiple
String httpMethod =
(String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD);
if ((httpMethod != null)) {
if (Constants.Configuration.HTTP_METHOD_GET.equalsIgnoreCase(httpMethod)) {
this.sendViaGet(msgContext, url, soapActionString);
return;
} else if (Constants.Configuration.HTTP_METHOD_DELETE.equalsIgnoreCase(httpMethod)) {
this.sendViaDelete(msgContext, url, soapActionString);
return;
} else if (Constants.Configuration.HTTP_METHOD_PUT.equalsIgnoreCase(httpMethod)) {
this.sendViaPut(msgContext, url, soapActionString);
return;
}
}
this.sendViaPost(msgContext, url, soapActionString);
}
|