Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHOReVOLUTION
choreospec
Commits
c76dc354
Commit
c76dc354
authored
Jan 09, 2017
by
Francesco Chicchiriccò
Browse files
Fixing Javadoc errors
parent
8e948672
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/eu/chorevolution/chors/Base.java
View file @
c76dc354
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment