Subversion Repositories XServices

Rev

Rev 16 | Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 17
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
package net.brutex.xservices.ws;
17
package net.brutex.xservices.ws;
18
 
18
 
-
 
19
import javax.jws.WebService;
-
 
20
import net.brutex.xservices.types.ReturnCode;
Line 19... Line 21...
19
import javax.jws.WebService;
21
import net.brutex.xservices.util.RunTask;
20
import net.brutex.xservices.types.ReturnCode;
22
import org.apache.tools.ant.taskdefs.HostInfo;
21
 
23
 
22
/**
24
/**
23
 *
25
 *
24
 * @author Brian Rosenberger, bru@brutex.de
26
 * @author Brian Rosenberger, bru@brutex.de
25
 */
27
 */
Line 26... Line 28...
26
@WebService(endpointInterface="net.brutex.xservices.ws.MiscService",
28
@WebService(endpointInterface="net.brutex.xservices.ws.MiscService",
27
serviceName="MiscService")
29
serviceName="MiscService")
28
public class MiscServiceImpl implements MiscService {
30
public class MiscServiceImpl implements MiscService {
Line 29... Line 31...
29
 
31
 
30
    public ReturnCode getHostinfo(String hostname) {
-
 
-
 
32
    public ReturnCode getHostinfo(String hostname) {
-
 
33
        return antGetHostinfo(hostname, "");
-
 
34
    }
-
 
35
 
-
 
36
    private ReturnCode antGetHostinfo(String hostname, String prefix) {
31
        throw new UnsupportedOperationException("Not supported yet.");
37
        HostInfo info = new HostInfo();
32
    }
38
        info.setTaskName("HostInfo");
Line 33... Line 39...
33
 
39
        RunTask runner = new RunTask(info);