- private class InqubusLoginProfile implements LoginProfile {
- private final String mail;
- private final String password;
-
- private InqubusLoginProfile(){
- final Config p = Config.INSTANCE;
- this.mail = p.getId();
- this.password = p.getPassword();
- }
-
- @Override
- public String getMail() {
- return this.mail;
- }
-
- @Override
- public String getPassword() {
- return this.password;
- }
-
- @Override
- public String toString(){
- return ToStringBuilder.reflectionToString(this);
- }
- }
-
- private class InqubusProxyProfile implements ProxyProfile {
- private final boolean use;
- private final String host;
- private final int port;
-
- private InqubusProxyProfile(){
- final Config p = Config.INSTANCE;
- this.use = p.getProxyUse();
- this.host = p.getProxyHost();
- final String pp = p.getProxyPort();
- this.port = StringUtils.isBlank(pp) ? -1 : Integer.parseInt(pp);
- }
-
- @Override
- public boolean use() {
- return this.use;
- }
-
- @Override
- public String getHost() {
- return this.host;
- }
-
- @Override
- public int getPort() {
- return this.port;
- }
-
- @Override
- public String toString(){
- return ToStringBuilder.reflectionToString(this);
- }
- }
-