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 {
}
/**
* (non-Javadoc)
* Example call: (Client1) (getPort("Client1", "http://localhost/client1?wsdl", Client1.class));
*
* @param <T>
* @param service_name
* @param wsdlLocation
* @param source_url
* @param client_class
* @return
* @throws java.net.MalformedURLException
* @throws java.lang.InterruptedException
* @param <T> generic parameter
* @param service_name service name
* @param wsdlLocation WSDL location
* @param source_url source URL
* @param client_class client class
* @return service port
* @throws java.net.MalformedURLException if bad URL is passed
*/
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;
QName serviceQName = null;
......@@ -93,7 +91,11 @@ public class Base implements BaseService {
while (err_count < 5) {
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>"))) {
try {
Thread.sleep(1000);
} catch(InterruptedException e) {
// ignore
}
err_count++;
} else {
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