Methods Summary |
---|
public ConnectionSession | createConnection()
try {
return WSConnectionManager.getInstance().createConnectionSession(this);
} catch (VersionMismatchException e) {
throw new IOException(e.getMessage());
} catch (ServiceChannelException e) {
throw new IOException(MessagesMessages.WSTCP_0024_SERVICE_CHANNEL_EXCEPTION(e.getFaultInfo().getErrorCode(), e.getMessage()));
}
|
public boolean | equals(java.lang.Object o)
if (o instanceof WSTCPURI) {
WSTCPURI toCmp = (WSTCPURI) o;
return port == toCmp.port && host.equals(toCmp.host);
}
return false;
|
public java.lang.String | getParameter(java.lang.String name)
if (params != null) {
return params.get(name);
}
return null;
|
public int | hashCode()
return host.hashCode() + port;
|
public static com.sun.xml.ws.transport.tcp.util.WSTCPURI | parse(java.lang.String uri)
try {
return parse(new URI(uri));
} catch (URISyntaxException ex) {
return null;
}
|
public static com.sun.xml.ws.transport.tcp.util.WSTCPURI | parse(java.net.URI uri)
final String path = uri.getPath();
final String query = uri.getQuery();
Map<String, String> params = null;
if (query != null && query.length() > 0) {
final String[] paramsStr = query.split(";");
params = new HashMap<String, String>(paramsStr.length);
for(String paramStr : paramsStr) {
if (paramStr.length() > 0) {
final String[] paramAsgn = paramStr.split("=");
if (paramAsgn != null && paramAsgn.length == 2 && paramAsgn[0].length() > 0 && paramAsgn[1].length() > 0) {
params.put(paramAsgn[0], paramAsgn[1]);
}
}
}
}
return new WSTCPURI(uri.getHost(), uri.getPort(), path, params, uri.toASCIIString());
|
public java.lang.String | toString()
return uri2string;
|