@Test public void testDocFullUrlCreation() { RepositoryLocation rep = new RepositoryLocation("alpha"); DocumentRef docRef = new IdRef("xxxx-xxx-xxxxx-xxxxxxxxx-xx"); final String result = "http: + DocumentLocator.getFullDocumentUrl(rep, docRef); log.info("result: " + result); try { assertNotNull(new URL(result)); } catch (MalformedURLException e) { fail("not a valid result: " + e.getMessage()); } }
public static String getFullDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { String baseUrl = BaseURL.getBaseURL(); String docUrl = getDocumentUrl(serverLocation, docRef); if (baseUrl != null) { return baseUrl + docUrl; } return docUrl; }
DocumentLocator { public static String getFullDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { String baseUrl = BaseURL.getBaseURL(); String docUrl = getDocumentUrl(serverLocation, docRef); if (baseUrl != null) { return baseUrl + docUrl; } return docUrl; } }
DocumentLocator { public static String getFullDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { String baseUrl = BaseURL.getBaseURL(); String docUrl = getDocumentUrl(serverLocation, docRef); if (baseUrl != null) { return baseUrl + docUrl; } return docUrl; } private  DocumentLocator(); }
DocumentLocator { public static String getFullDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { String baseUrl = BaseURL.getBaseURL(); String docUrl = getDocumentUrl(serverLocation, docRef); if (baseUrl != null) { return baseUrl + docUrl; } return docUrl; } 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 getFullDocumentUrl(RepositoryLocation serverLocation, DocumentRef docRef) { String baseUrl = BaseURL.getBaseURL(); String docUrl = getDocumentUrl(serverLocation, docRef); if (baseUrl != null) { return baseUrl + docUrl; } return docUrl; } 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; }