Methods Summary |
---|
public TCPAdapter | createAdapter(java.lang.String name, java.lang.String urlPattern, com.sun.xml.ws.api.server.WSEndpoint endpoint)
// TODO: documented because it's used by AS
final TCPAdapter tcpAdapter = new TCPAdapter(name, urlPattern, endpoint);
adapters.add(tcpAdapter);
final WSDLPort port = endpoint.getPort();
if (port != null) {
addressMap.put(port.getName().getLocalPart(), getValidPath(urlPattern));
}
return tcpAdapter;
|
protected com.sun.xml.ws.api.server.PortAddressResolver | createPortAddressResolver(java.lang.String baseAddress)Creates a PortAddressResolver that maps portname to its address
return new PortAddressResolver() {
public String getAddressFor(QName serviceName, @NotNull String portName) {
final String urlPattern = addressMap.get(portName);
return (urlPattern == null) ? null : baseAddress+urlPattern;
}
};
|
public TCPAdapter | get(int index)
return adapters.get(index);
|
private java.lang.String | getValidPath(java.lang.String urlPattern)
if (urlPattern.endsWith("/*")) {
return urlPattern.substring(0, urlPattern.length() - 2);
} else {
return urlPattern;
}
|
public int | size()
return adapters.size();
|