mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
CLOUD-2152 "Ability to assign protocol and URL params to PublicApiClient." fix build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@57165 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -418,7 +418,7 @@ public class TestNetworks extends EnterpriseTestApi
|
||||
RequestContext rc = new RequestContext("-default-", person.getId());
|
||||
publicApiClient.setRequestContext(rc);
|
||||
|
||||
HttpResponse response = publicApiClient.get("/-default-", null);
|
||||
HttpResponse response = publicApiClient.get("-default-", null);
|
||||
assertEquals(200, response.getStatusCode());
|
||||
}
|
||||
|
||||
|
@@ -533,7 +533,7 @@ public class PublicApiClient
|
||||
|
||||
public HttpResponse index(Map<String, String> params) throws IOException
|
||||
{
|
||||
HttpResponse response = get("/", params);
|
||||
HttpResponse response = get("", params);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
@@ -74,7 +74,7 @@ public class PublicApiHttpClient
|
||||
private static final String BASE_URL = "{0}://{1}:{2}{3}{4}{5}/{6}/{7}/versions/1";
|
||||
private static final String PUBLICAPI_CMIS_SERVICE_URL = "{0}://{1}:{2}{3}{4}cmis/versions/{5}/{6}";
|
||||
private static final String PUBLICAPI_CMIS_URL = "{0}://{1}:{2}{3}{4}{5}/{6}/cmis/versions/{7}/{8}";
|
||||
private static final String ATOM_PUB_URL = "{0}://{1}:{2}{3}/cmisatom";
|
||||
private static final String ATOM_PUB_URL = "{0}://{1}:{2}{3}cmisatom";
|
||||
|
||||
private String scheme = "http";
|
||||
private String host = "localhost";
|
||||
|
Reference in New Issue
Block a user