@Test public void testDocUrlCreation2() { RepositoryLocation rep = new RepositoryLocation("alpha"); DocumentRef docRef = new IdRef("xxxx-xxx-xxxxx-xxxxxxxxx-xx"); final String result = DocumentLocator.getDocumentUrl(rep, docRef); log.info("result: " + result); try { assertNotNull(new URI(result)); } catch (URISyntaxException e) { fail("not a valid result: " + e.getMessage()); } }
public static String getDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { if (serverLocation == null) { String nullRepoName = null; return getDocumentUrl(nullRepoName, docRef); } return getDocumentUrl(serverLocation.getName(), docRef); }
DocumentLocator { public static String getDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { if (serverLocation == null) { String nullRepoName = null; return getDocumentUrl(nullRepoName, docRef); } return getDocumentUrl(serverLocation.getName(), docRef); } }
DocumentLocator { public static String getDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { if (serverLocation == null) { String nullRepoName = null; return getDocumentUrl(nullRepoName, docRef); } return getDocumentUrl(serverLocation.getName(), docRef); } private  DocumentLocator(); }
DocumentLocator { public static String getDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { if (serverLocation == null) { String nullRepoName = null; return getDocumentUrl(nullRepoName, docRef); } return getDocumentUrl(serverLocation.getName(), docRef); } private  DocumentLocator(); static String getDocumentUrl(RepositoryLocation serverLocation,
            DocumentRef docRef); static String getDocumentUrl(String serverLocationName,
            DocumentRef docRef); static String getFullDocumentUrl(RepositoryLocation serverLocation,
            DocumentRef docRef); static String getFullDocumentUrl(String serverLocation,
            DocumentRef docRef); static DocumentLocation parseDocRef(String docUriRef); }
DocumentLocator { public static String getDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { if (serverLocation == null) { String nullRepoName = null; return getDocumentUrl(nullRepoName, docRef); } return getDocumentUrl(serverLocation.getName(), docRef); } private  DocumentLocator(); static String getDocumentUrl(RepositoryLocation serverLocation,
            DocumentRef docRef); static String getDocumentUrl(String serverLocationName,
            DocumentRef docRef); static String getFullDocumentUrl(RepositoryLocation serverLocation,
            DocumentRef docRef); static String getFullDocumentUrl(String serverLocation,
            DocumentRef docRef); static DocumentLocation parseDocRef(String docUriRef); static final String URL_PREFIX; static final String PARAM_NAME; static final String CHAR_ENCODING; }