public void handleMessage(Message message) {
Binding<?> binding = message.get(Binding.class);
if (binding instanceof Wsdl2HttpBinding == false) {
return;
}
Wsdl2HttpBinding httpBinding = (Wsdl2HttpBinding) binding;
String uri = message.getTransportHeaders().get(HttpConstants.REQUEST_URI);
if (uri == null) {
throw new Fault("Transport header not set: " + HttpConstants.REQUEST_URI);
}
String mth = message.getTransportHeaders().get(HttpConstants.REQUEST_METHOD);
if (mth == null) {
throw new Fault("Transport header not set: " + HttpConstants.REQUEST_METHOD);
}
for (Wsdl2HttpOperation operation : httpBinding.getOperations()) {
if (mth.equalsIgnoreCase(operation.getHttpMethod())) {
String loc = IriDecoderHelper.combine(binding.getLocation(), operation.getHttpLocation());
String path1 = getUriPath(uri);
String path2 = getUriPath(loc);
if (matchPath(path1, path2)) {