List of usage examples for javax.xml.ws.handler PortInfo getBindingID
public String getBindingID();
From source file:org.apache.axis2.jaxws.spi.handler.BaseHandlerResolver.java
protected static boolean chainResolvesToPort(HandlerChainType hct, PortInfo portinfo) { List<String> protocolBindings = hct.getProtocolBindings(); if (protocolBindings != null) { boolean match = true; for (Iterator<String> it = protocolBindings.iterator(); it.hasNext();) { match = false; // default to false in the protocol bindings until we find a match String protocolBinding = it.next(); protocolBinding = protocolBinding.startsWith("##") ? protocolBindingsMap.get(protocolBinding) : protocolBinding;/* w w w .j av a 2 s . co m*/ // if the protocolBindingsMap returns null, it would mean someone has some nonsense ##binding if ((protocolBinding != null) && (protocolBinding.equals(portinfo.getBindingID()))) { match = true; break; } } if (match == false) { // we've checked all the protocolBindings, but didn't find a match, no need to continue return match; } } /* * need to figure out how to get the namespace declaration out of the port-name-pattern and service-name-pattern */ if (!doesPatternMatch(portinfo.getPortName(), hct.getPortNamePattern())) { // we've checked the port-name-pattern, and didn't find a match, no need to continue return false; } if (!doesPatternMatch(portinfo.getServiceName(), hct.getServiceNamePattern())) { // we've checked the service-name-pattern, and didn't find a match, no need to continue return false; } return true; }