backlog4j.AbstractBacklogClientBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backlog4j Show documentation
Show all versions of backlog4j Show documentation
A Java library for Backlog API
The newest version!
package backlog4j;
import backlog4j.conf.BacklogConfigure;
import backlog4j.xmlrpc.XmlRpcClient;
/**
* @author eguchi
*/
public abstract class AbstractBacklogClientBase implements BacklogClientBase {
protected final XmlRpcClient client;
public AbstractBacklogClientBase(BacklogConfigure configure) {
if (configure == null) {
throw new IllegalArgumentException("configure must not be null");
}
client = new XmlRpcClient(configure);
}
public BacklogConfigure getConfigure() {
return client.getConfigure();
}
public Object execute(String methodName) {
return execute(methodName, new Object[]{});
}
public Object execute(String methodName, Object... params) {
return client.execute(methodName, params);
}
}