com.nulabinc.backlog4j.conf.BacklogJpConfigure 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
Backlog4j is a Backlog binding library for Java.
package com.nulabinc.backlog4j.conf;
import java.net.MalformedURLException;
/**
* @author nulab-inc
*/
public final class BacklogJpConfigure extends BacklogConfigure {
private final String spaceKey;
public BacklogJpConfigure(String spaceKey) throws MalformedURLException {
if (spaceKey == null) {
throw new IllegalArgumentException("spaceKey must not be null");
}
this.spaceKey = spaceKey;
}
@Override
public String getOAuthAuthorizationURL() {
return "https://" + spaceKey + ".backlog.jp/OAuth2AccessRequest.action";
}
@Override
public String getOAuthAccessTokenURL() {
return "https://" + spaceKey + ".backlog.jp/api/v2/oauth2/token";
}
@Override
public String getRestBaseURL() {
return "https://" + spaceKey + ".backlog.jp/api/v2";
}
@Override
public String getWebAppBaseURL() {
return "https://" + spaceKey + ".backlog.jp";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy