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:
Steven Glover
2013-10-24 21:21:10 +00:00
parent fe7024e425
commit a1651c876a
3 changed files with 3 additions and 3 deletions

View File

@@ -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());
}

View File

@@ -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;
}

View File

@@ -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";