@Test public void testToAbsoluteUrl() { String expectedHostPart = "http: String url; url = "http: testToAbsoluteUrl(url, url); url = "https: testToAbsoluteUrl(url, url); url = "/aURL/someOtherPart"; testToAbsoluteUrl(expectedHostPart + url, url); url = "aURL/someOtherPart"; testToAbsoluteUrl(expectedHostPart + "/" + url, url); testToAbsoluteUrl(null, null); }
protected void toAbsoluteUrl(CustomDepositFormResultDTO response) { if (response == null) return; String customDepositFormURL = response.getUrlForCustomDepositForm(); if (customDepositFormURL == null) return; if (customDepositFormURL.startsWith("http: if (customDepositFormURL.startsWith("/") == false) customDepositFormURL = "/" + customDepositFormURL; String urlPrefix = "http: response.setUrlForCustomDepositForm(urlPrefix + customDepositFormURL); }
DigitalAssetStoreSOAPClient implements DigitalAssetStore, DigitalAssetStoreConfig { protected void toAbsoluteUrl(CustomDepositFormResultDTO response) { if (response == null) return; String customDepositFormURL = response.getUrlForCustomDepositForm(); if (customDepositFormURL == null) return; if (customDepositFormURL.startsWith("http: if (customDepositFormURL.startsWith("/") == false) customDepositFormURL = "/" + customDepositFormURL; String urlPrefix = "http: response.setUrlForCustomDepositForm(urlPrefix + customDepositFormURL); } }
DigitalAssetStoreSOAPClient implements DigitalAssetStore, DigitalAssetStoreConfig { protected void toAbsoluteUrl(CustomDepositFormResultDTO response) { if (response == null) return; String customDepositFormURL = response.getUrlForCustomDepositForm(); if (customDepositFormURL == null) return; if (customDepositFormURL.startsWith("http: if (customDepositFormURL.startsWith("/") == false) customDepositFormURL = "/" + customDepositFormURL; String urlPrefix = "http: response.setUrlForCustomDepositForm(urlPrefix + customDepositFormURL); }  }
DigitalAssetStoreSOAPClient implements DigitalAssetStore, DigitalAssetStoreConfig { protected void toAbsoluteUrl(CustomDepositFormResultDTO response) { if (response == null) return; String customDepositFormURL = response.getUrlForCustomDepositForm(); if (customDepositFormURL == null) return; if (customDepositFormURL.startsWith("http: if (customDepositFormURL.startsWith("/") == false) customDepositFormURL = "/" + customDepositFormURL; String urlPrefix = "http: response.setUrlForCustomDepositForm(urlPrefix + customDepositFormURL); }  void save(String targetInstanceName, String directory, File file); void save(String targetInstanceName, File file); void save(String targetInstanceName, String directory, File[] files); void save(String targetInstanceName, File[] files); File getResource(String targetInstanceName, int harvestResultNumber, HarvestResourceDTO resource); Header[] getHeaders(String targetInstanceName, int harvestResultNumber, HarvestResourceDTO resource); HarvestResultDTO copyAndPrune(String targetInstanceName, int orgHarvestResultNum, int newHarvestResultNum, List<String> urisToDelete, List<HarvestResourceDTO> hrsToImport); void purge(String[] targetInstanceNames); void purgeAbortedTargetInstances(String[] targetInstanceNames); void setHost(String host); void setPort(int port); void setService(String service); String getAssetStoreServiceName(); String getHost(); String getLogReaderServiceName(); int getPort(); void setLogReaderService(String logReaderService); void submitToArchive(String targetInstanceOid, String SIP, Map xAttributes, int harvestNumber); byte[] getSmallResource(String targetInstanceName, int harvestResultNumber, HarvestResourceDTO resource); void initiateIndexing(ArcHarvestResultDTO harvestResult); void initiateRemoveIndexes(ArcHarvestResultDTO harvestResult); Boolean checkIndexing(Long harvestResultOid); CustomDepositFormResultDTO getCustomDepositFormDetails(CustomDepositFormCriteriaDTO criteria); String toString(); }
DigitalAssetStoreSOAPClient implements DigitalAssetStore, DigitalAssetStoreConfig { protected void toAbsoluteUrl(CustomDepositFormResultDTO response) { if (response == null) return; String customDepositFormURL = response.getUrlForCustomDepositForm(); if (customDepositFormURL == null) return; if (customDepositFormURL.startsWith("http: if (customDepositFormURL.startsWith("/") == false) customDepositFormURL = "/" + customDepositFormURL; String urlPrefix = "http: response.setUrlForCustomDepositForm(urlPrefix + customDepositFormURL); }  void save(String targetInstanceName, String directory, File file); void save(String targetInstanceName, File file); void save(String targetInstanceName, String directory, File[] files); void save(String targetInstanceName, File[] files); File getResource(String targetInstanceName, int harvestResultNumber, HarvestResourceDTO resource); Header[] getHeaders(String targetInstanceName, int harvestResultNumber, HarvestResourceDTO resource); HarvestResultDTO copyAndPrune(String targetInstanceName, int orgHarvestResultNum, int newHarvestResultNum, List<String> urisToDelete, List<HarvestResourceDTO> hrsToImport); void purge(String[] targetInstanceNames); void purgeAbortedTargetInstances(String[] targetInstanceNames); void setHost(String host); void setPort(int port); void setService(String service); String getAssetStoreServiceName(); String getHost(); String getLogReaderServiceName(); int getPort(); void setLogReaderService(String logReaderService); void submitToArchive(String targetInstanceOid, String SIP, Map xAttributes, int harvestNumber); byte[] getSmallResource(String targetInstanceName, int harvestResultNumber, HarvestResourceDTO resource); void initiateIndexing(ArcHarvestResultDTO harvestResult); void initiateRemoveIndexes(ArcHarvestResultDTO harvestResult); Boolean checkIndexing(Long harvestResultOid); CustomDepositFormResultDTO getCustomDepositFormDetails(CustomDepositFormCriteriaDTO criteria); String toString();  }