/** * This is a deprecated method in Axis2 and this default implementation returns the first * result from the getEPRsForService() method */ public EndpointReference getEPRForService(String serviceName, String ip) throws AxisFault { return getEPRsForService(serviceName, ip)[0]; }
/** * This is a deprecated method in Axis2 and this default implementation returns the first * result from the getEPRsForService() method */ public EndpointReference getEPRForService(String serviceName, String ip) throws AxisFault { return getEPRsForService(serviceName, ip)[0]; }
public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { return getEPRsForService(serviceName); }
public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { return getEPRsForService(serviceName); }
public String[] getAddresses() { String hostname; try { hostname = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException ex) { hostname = "localhost"; } EndpointReference[] epr; try { epr = listener.getEPRsForService(serviceName, hostname); } catch (AxisFault ex) { return null; } if (epr == null) { return null; } else { String[] result = new String[epr.length]; for (int i=0; i<epr.length; i++) { result[i] = epr[i].getAddress(); } return result; } } }
public String[] getAddresses() { String hostname; try { hostname = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException ex) { hostname = "localhost"; } EndpointReference[] epr; try { epr = listener.getEPRsForService(serviceName, hostname); } catch (AxisFault ex) { return null; } if (epr == null) { return null; } else { String[] result = new String[epr.length]; for (int i=0; i<epr.length; i++) { result[i] = epr[i].getAddress(); } return result; } } }