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);
|
||||
}
|
||||
|
||||
public HttpUrl getApiBase() {
|
||||
return apiBase;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setApiEndpoint(final String apiEndpoint) {
|
||||
this.apiEndpoint = checkNotNull(apiEndpoint);
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getApiEndpoint() {
|
||||
return apiEndpoint;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setApiVersion(final String apiVersion) {
|
||||
checkArgument(apiVersion.compareToIgnoreCase("1.11") >= 0, "apiVersion must be 1.11 or higher");
|
||||
this.apiVersion = apiVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getApiVersion() {
|
||||
return apiVersion;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setApiExt(final String apiExt) {
|
||||
this.apiExt = checkNotNull(apiExt);
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getApiExt() {
|
||||
return apiExt;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setApiAuthorization(final String apiAuthorization) {
|
||||
this.apiAuthorization = apiAuthorization;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getApiAuthorization() {
|
||||
return apiAuthorization;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setApiClient(final String apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getApiClient() {
|
||||
return apiClient;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setRequestChecksumSalt(final byte[] requestChecksumSalt) {
|
||||
this.requestChecksumSalt = requestChecksumSalt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public byte[] getRequestChecksumSalt() {
|
||||
return requestChecksumSalt;
|
||||
}
|
||||
|
||||
protected AbstractHafasClientInterfaceProvider setRequestMicMacSalt(final byte[] requestMicMacSalt) {
|
||||
this.requestMicMacSalt = requestMicMacSalt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public byte[] getRequestMicMacSalt() {
|
||||
return requestMicMacSalt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NearbyLocationsResult queryNearbyLocations(final Set<LocationType> types, final Location location,
|
||||
final int maxDistance, final int maxLocations) throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue