Commit c76dc354 authored by Francesco Chicchiriccò's avatar Francesco Chicchiriccò
Browse files

Fixing Javadoc errors

parent 8e948672
...@@ -66,20 +66,18 @@ public class Base implements BaseService { ...@@ -66,20 +66,18 @@ public class Base implements BaseService {
} }
/** /**
* (non-Javadoc)
* Example call: (Client1) (getPort("Client1", "http://localhost/client1?wsdl", Client1.class)); * Example call: (Client1) (getPort("Client1", "http://localhost/client1?wsdl", Client1.class));
* *
* @param <T> * @param <T> generic parameter
* @param service_name * @param service_name service name
* @param wsdlLocation * @param wsdlLocation WSDL location
* @param source_url * @param source_url source URL
* @param client_class * @param client_class client class
* @return * @return service port
* @throws java.net.MalformedURLException * @throws java.net.MalformedURLException if bad URL is passed
* @throws java.lang.InterruptedException
*/ */
public static <T> T getPort(String service_name, String wsdlLocation, String source_url, Class<T> client_class) public static <T> T getPort(String service_name, String wsdlLocation, String source_url, Class<T> client_class)
throws MalformedURLException, IOException, InterruptedException { throws MalformedURLException, IOException {
T retPort = null; T retPort = null;
QName serviceQName = null; QName serviceQName = null;
...@@ -93,7 +91,11 @@ public class Base implements BaseService { ...@@ -93,7 +91,11 @@ public class Base implements BaseService {
while (err_count < 5) { while (err_count < 5) {
wsdl_content = new Scanner(new URL(wsdlLocation).openStream(), "UTF-8").useDelimiter("\\A").next(); wsdl_content = new Scanner(new URL(wsdlLocation).openStream(), "UTF-8").useDelimiter("\\A").next();
if ((wsdl_content == null) || (wsdl_content.contains("<html>")) || (wsdl_content.contains("<body>"))) { if ((wsdl_content == null) || (wsdl_content.contains("<html>")) || (wsdl_content.contains("<body>"))) {
try {
Thread.sleep(1000); Thread.sleep(1000);
} catch(InterruptedException e) {
// ignore
}
err_count++; err_count++;
} else { } else {
break; break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment