
org.interledger.spsp.server.config.model.SettlementEngineDetailsFromPropertyFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spsp-server Show documentation
Show all versions of spsp-server Show documentation
An Interledger SPSP server with a stateless STREAM receiver that publishes events.
The newest version!
package org.interledger.spsp.server.config.model;
import org.interledger.connector.accounts.SettlementEngineAccountId;
import org.interledger.connector.accounts.SettlementEngineDetails;
import okhttp3.HttpUrl;
import java.util.Map;
import java.util.Optional;
/**
* Models the YAML format for spring-boot automatic configuration property loading.
*/
public class SettlementEngineDetailsFromPropertyFile implements SettlementEngineDetails {
private String settlementEngineAccountId;
private String baseUrl;
private Map customSettings;
public String getSettlementEngineAccountId() {
return settlementEngineAccountId;
}
public void setSettlementEngineAccountId(String settlementEngineAccountId) {
this.settlementEngineAccountId = settlementEngineAccountId;
}
public String getBaseUrl() {
return baseUrl;
}
public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}
@Override
public Optional settlementEngineAccountId() {
return settlementEngineAccountId == null ? Optional.empty() :
Optional.of(SettlementEngineAccountId.of(settlementEngineAccountId));
}
@Override
public HttpUrl baseUrl() {
return HttpUrl.parse(getBaseUrl());
}
@Override
public Map customSettings() {
return this.customSettings;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy