-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Bases with rdf:nil or null next pages (#102)
- Loading branch information
1 parent
3363977
commit 37147dc
Showing
5 changed files
with
57 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../trs-client/src/main/java/org/eclipse/lyo/trs/client/config/TrsProviderConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.eclipse.lyo.trs.client.config; | ||
|
||
import java.net.URI; | ||
|
||
public final class TrsProviderConfiguration { | ||
private final URI trsUri; | ||
private final String basicAuthUsername; | ||
private final String basicAuthPassword; | ||
|
||
public final URI getTrsUri() { | ||
return this.trsUri; | ||
} | ||
|
||
public final String getBasicAuthUsername() { | ||
return this.basicAuthUsername; | ||
} | ||
|
||
public final String getBasicAuthPassword() { | ||
return this.basicAuthPassword; | ||
} | ||
|
||
public TrsProviderConfiguration(URI trsUri, String basicAuthUsername, String basicAuthPassword) { | ||
super(); | ||
this.trsUri = trsUri; | ||
this.basicAuthUsername = basicAuthUsername; | ||
this.basicAuthPassword = basicAuthPassword; | ||
} | ||
|
||
public static final TrsProviderConfiguration forHttp(String trsEndpointUri) { | ||
URI trsUri = URI.create(trsEndpointUri); | ||
return new TrsProviderConfiguration(trsUri, null, null); | ||
} | ||
|
||
public static final TrsProviderConfiguration forHttpWithBasicAuth(String trsEndpointUri, String trsEndpointUsername, String trsEndpointPassword) { | ||
URI trsUri = URI.create(trsEndpointUri); | ||
return new TrsProviderConfiguration(trsUri, trsEndpointUsername, trsEndpointPassword); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
.../trs-client/src/main/kotlin/org/eclipse/lyo/trs/client/config/TrsProviderConfiguration.kt
This file was deleted.
Oops, something went wrong.