mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
AbstractHafasClientInterfaceProvider: Getters for configuration properties.
This commit is contained in:
parent
0a011d29c4
commit
73cf64278f
1 changed files with 32 additions and 0 deletions
|
@ -112,42 +112,74 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
||||||
this.apiBase = checkNotNull(apiBase);
|
this.apiBase = checkNotNull(apiBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HttpUrl getApiBase() {
|
||||||
|
return apiBase;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setApiEndpoint(final String apiEndpoint) {
|
protected AbstractHafasClientInterfaceProvider setApiEndpoint(final String apiEndpoint) {
|
||||||
this.apiEndpoint = checkNotNull(apiEndpoint);
|
this.apiEndpoint = checkNotNull(apiEndpoint);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getApiEndpoint() {
|
||||||
|
return apiEndpoint;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setApiVersion(final String apiVersion) {
|
protected AbstractHafasClientInterfaceProvider setApiVersion(final String apiVersion) {
|
||||||
checkArgument(apiVersion.compareToIgnoreCase("1.11") >= 0, "apiVersion must be 1.11 or higher");
|
checkArgument(apiVersion.compareToIgnoreCase("1.11") >= 0, "apiVersion must be 1.11 or higher");
|
||||||
this.apiVersion = apiVersion;
|
this.apiVersion = apiVersion;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getApiVersion() {
|
||||||
|
return apiVersion;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setApiExt(final String apiExt) {
|
protected AbstractHafasClientInterfaceProvider setApiExt(final String apiExt) {
|
||||||
this.apiExt = checkNotNull(apiExt);
|
this.apiExt = checkNotNull(apiExt);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getApiExt() {
|
||||||
|
return apiExt;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setApiAuthorization(final String apiAuthorization) {
|
protected AbstractHafasClientInterfaceProvider setApiAuthorization(final String apiAuthorization) {
|
||||||
this.apiAuthorization = apiAuthorization;
|
this.apiAuthorization = apiAuthorization;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getApiAuthorization() {
|
||||||
|
return apiAuthorization;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setApiClient(final String apiClient) {
|
protected AbstractHafasClientInterfaceProvider setApiClient(final String apiClient) {
|
||||||
this.apiClient = apiClient;
|
this.apiClient = apiClient;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setRequestChecksumSalt(final byte[] requestChecksumSalt) {
|
protected AbstractHafasClientInterfaceProvider setRequestChecksumSalt(final byte[] requestChecksumSalt) {
|
||||||
this.requestChecksumSalt = requestChecksumSalt;
|
this.requestChecksumSalt = requestChecksumSalt;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] getRequestChecksumSalt() {
|
||||||
|
return requestChecksumSalt;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractHafasClientInterfaceProvider setRequestMicMacSalt(final byte[] requestMicMacSalt) {
|
protected AbstractHafasClientInterfaceProvider setRequestMicMacSalt(final byte[] requestMicMacSalt) {
|
||||||
this.requestMicMacSalt = requestMicMacSalt;
|
this.requestMicMacSalt = requestMicMacSalt;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] getRequestMicMacSalt() {
|
||||||
|
return requestMicMacSalt;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NearbyLocationsResult queryNearbyLocations(final Set<LocationType> types, final Location location,
|
public NearbyLocationsResult queryNearbyLocations(final Set<LocationType> types, final Location location,
|
||||||
final int maxDistance, final int maxLocations) throws IOException {
|
final int maxDistance, final int maxLocations) throws IOException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue