minor sync fixes
This commit is contained in:
parent
d04af2252e
commit
2fa329bff9
@ -17,12 +17,12 @@ import com.inteligr8.rs.ClientConfiguration;
|
|||||||
*/
|
*/
|
||||||
public abstract class ApsPublicRestApi {
|
public abstract class ApsPublicRestApi {
|
||||||
|
|
||||||
protected abstract ClientConfiguration getConfig();
|
abstract ClientConfiguration getConfig();
|
||||||
|
|
||||||
protected abstract Client getClient();
|
abstract Client getClient();
|
||||||
|
|
||||||
protected <T> T getApi(Class<T> apiClass) {
|
protected final <T> T getApi(Class<T> apiClass) {
|
||||||
return this.getClient().getApi(apiClass);
|
return this.getApi(null, apiClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected <T> T getApi(AuthorizationFilter authFilter, Class<T> apiClass) {
|
protected <T> T getApi(AuthorizationFilter authFilter, Class<T> apiClass) {
|
||||||
|
@ -34,12 +34,12 @@ public class ApsPublicRestApiCxfImpl extends ApsPublicRestApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ClientConfiguration getConfig() {
|
ClientConfiguration getConfig() {
|
||||||
return this.client.getConfig();
|
return this.client.getConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Client getClient() {
|
Client getClient() {
|
||||||
return this.client;
|
return this.client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@ public class ApsPublicRestApiJerseyImpl extends ApsPublicRestApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ClientConfiguration getConfig() {
|
ClientConfiguration getConfig() {
|
||||||
return this.client.getConfig();
|
return this.client.getConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Client getClient() {
|
Client getClient() {
|
||||||
return this.client;
|
return this.client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user