1 package org.collectionspace.hello.client;
\r
5 public abstract class CollectionSpaceClient {
\r
6 static final String URL_PROPERTY = "org.collectionspace.url";
\r
8 static final String URL_PROPERTY_SCHEME = "org.collectionspace.url.schme";
\r
9 static final String URL_PROPERTY_HOST = "org.collectionspace.url.host";
\r
10 static final String URL_PROPERTY_PORT = "org.collectionspace.url.port";
\r
11 static final String URL_PROPERTY_CONTEXT = "org.collectionspace.url.context";
\r
14 private static final String SCHEME = "http";
\r
15 private static final String HOST = "localhost";
\r
16 private static final String PORT = "8080";
\r
17 private static final String URI = "/helloworld/cspace-nuxeo";
\r
18 private static final String URL = SCHEME + "://" +
\r
22 private String collectionSpaceURL = null;
\r
26 String result = collectionSpaceURL;
\r
28 if (collectionSpaceURL == null) {
\r
29 result = collectionSpaceURL = System.getProperty(URL_PROPERTY, URL);
\r