Subversion Repositories XServices

Compare Revisions

Ignore whitespace Rev 16 → Rev 17

/xservices/trunk/src/java/net/brutex/xservices/ws/MiscServiceImpl.java
18,6 → 18,8
 
import javax.jws.WebService;
import net.brutex.xservices.types.ReturnCode;
import net.brutex.xservices.util.RunTask;
import org.apache.tools.ant.taskdefs.HostInfo;
 
/**
*
28,12 → 30,16
public class MiscServiceImpl implements MiscService {
 
public ReturnCode getHostinfo(String hostname) {
throw new UnsupportedOperationException("Not supported yet.");
return antGetHostinfo(hostname, "");
}
 
private ReturnCode antGetHostinfo() {
return null;
private ReturnCode antGetHostinfo(String hostname, String prefix) {
HostInfo info = new HostInfo();
info.setTaskName("HostInfo");
RunTask runner = new RunTask(info);
info.setHost(hostname);
info.setPrefix(prefix);
return runner.postTask();
}
 
}