|
|
|
@ -128,6 +128,18 @@ public class ResourceRegistryPublisherImpl extends BaseRequestInfo implements Re
|
|
|
|
|
queryParams.put(AccessPath.INCLUDE_META_IN_ALL_INSTANCES_QUERY_PARAMETER, Boolean.toString(allMeta));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void addOffset(Map<String,String> queryParams) throws UnsupportedEncodingException{
|
|
|
|
|
if(offset!=null) {
|
|
|
|
|
queryParams.put(AccessPath.OFFSET_QUERY_PARAMETER, offset.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void addLimit(Map<String,String> queryParams) throws UnsupportedEncodingException{
|
|
|
|
|
if(limit!=null) {
|
|
|
|
|
queryParams.put(AccessPath.LIMIT_QUERY_PARAMETER, limit.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected ContextCacheRenewal contextCacheRenewal = new ContextCacheRenewal() {
|
|
|
|
|
|
|
|
|
@ -215,6 +227,11 @@ public class ResourceRegistryPublisherImpl extends BaseRequestInfo implements Re
|
|
|
|
|
public List<Context> getContexts() throws ResourceRegistryException {
|
|
|
|
|
return contextCache.getContexts();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ContextCache getContextCache() {
|
|
|
|
|
return contextCache;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* It reads the context from server.
|
|
|
|
@ -312,6 +329,8 @@ public class ResourceRegistryPublisherImpl extends BaseRequestInfo implements Re
|
|
|
|
|
gxHTTPStringRequest.path(type);
|
|
|
|
|
|
|
|
|
|
Map<String,String> parameters = new HashMap<>();
|
|
|
|
|
addOffset(parameters);
|
|
|
|
|
addLimit(parameters);
|
|
|
|
|
parameters.put(InstancePath.POLYMORPHIC_QUERY_PARAMETER, polymorphic.toString());
|
|
|
|
|
includeAdditionalQueryParameters(gxHTTPStringRequest, parameters);
|
|
|
|
|
|
|
|
|
|