src/main/java/gov/usgs/cida/pubs/busservice/CrossRefBusService.java
protected String buildCrossRefUrl() throws UnsupportedEncodingException, URISyntaxException {
		String url = null;
		try {
			String query = "?operation=doMDUpload&login_id=" +
			URLEncoder.encode(configurationService.getCrossrefUser(), PubsConstantsHelper.URL_ENCODING) +
			"&login_passwd=" +
			URLEncoder.encode(configurationService.getCrossrefPwd(), PubsConstantsHelper.URL_ENCODING) +
			"&area=live";
			URI uri = new URI(configurationService.getCrossrefProtocol(), null, configurationService.getCrossrefHost(),
					configurationService.getCrossrefPort(), configurationService.getCrossrefUrl(), null, null);
			url = uri.toString() + query;
		} catch (URISyntaxException ex) {
			/**
			 * we omit the original exception because the URI could
			 * contain passwords that we do not want logged or 
			 * emailed.
			 */
			throw new URISyntaxException(String.join(",", configurationService.getCrossrefProtocol(), configurationService.getCrossrefHost(),
					configurationService.getCrossrefPort().toString(), configurationService.getCrossrefUrl(), configurationService.getCrossrefUser(),
					"password omitted"), "Could not construct Crossref submission url");
		} catch (UnsupportedEncodingException ex) {
			throw ex;
		}
		return url;
	}
/**
	 * Builds a url for registering crossref content.
	 * https://support.crossref.org/hc/en-us/articles/214960123-Using-HTTPS-to-POST-Files
	 * 
	 * @return String URL with safely-encoded parameters
	 * @throws java.io.UnsupportedEncodingException
	 * @throws java.net.URISyntaxException
	 */
Builds a url for registering crossref content.

@return String URL with safely-encoded parameters
@throws java.io.UnsupportedEncodingException
@throws java.net.URISyntaxException
Builds a url for registering crossref content . @return String URL with safely - encoded parameters @throws java . io . UnsupportedEncodingException @throws java . net . URISyntaxException
protected String buildCrossRefUrl() throws UnsupportedEncodingException, URISyntaxException {
		String url = null;
		try {
			String query = "?operation=doMDUpload&login_id=" +
			URLEncoder.encode(configurationService.getCrossrefUser(), PubsConstantsHelper.URL_ENCODING) +
			"&login_passwd=" +
			URLEncoder.encode(configurationService.getCrossrefPwd(), PubsConstantsHelper.URL_ENCODING) +
			"&area=live";
			URI uri = new URI(configurationService.getCrossrefProtocol(), null, configurationService.getCrossrefHost(),
					configurationService.getCrossrefPort(), configurationService.getCrossrefUrl(), null, null);
			url = uri.toString() + query;
		} catch (URISyntaxException ex) {
			/**
			 * we omit the original exception because the URI could
			 * contain passwords that we do not want logged or 
			 * emailed.
			 */
			throw new URISyntaxException(String.join(",", configurationService.getCrossrefProtocol(), configurationService.getCrossrefHost(),
					configurationService.getCrossrefPort().toString(), configurationService.getCrossrefUrl(), configurationService.getCrossrefUser(),
					"password omitted"), "Could not construct Crossref submission url");
		} catch (UnsupportedEncodingException ex) {
			throw ex;
		}
		return url;
	}
protected String buildCrossRefUrl ( ) throws UnsupportedEncodingException , URISyntaxException { String url = null ; try { String query = "?operation=doMDUpload&login_id=" + URLEncoder . encode ( configurationService . getCrossrefUser ( ) , PubsConstantsHelper . URL_ENCODING ) + "&login_passwd=" + URLEncoder . encode ( configurationService . getCrossrefPwd ( ) , PubsConstantsHelper . URL_ENCODING ) + "&area=live" ; URI uri = new URI ( configurationService . getCrossrefProtocol ( ) , null , configurationService . getCrossrefHost ( ) , configurationService . getCrossrefPort ( ) , configurationService . getCrossrefUrl ( ) , null , null ) ; url = uri . toString ( ) + query ; } catch ( URISyntaxException ex ) { /**
			 * we omit the original exception because the URI could
			 * contain passwords that we do not want logged or 
			 * emailed.
			 */ throw new URISyntaxException ( String . join ( "," , configurationService . getCrossrefProtocol ( ) , configurationService . getCrossrefHost ( ) , configurationService . getCrossrefPort ( ) . toString ( ) , configurationService . getCrossrefUrl ( ) , configurationService . getCrossrefUser ( ) , "password omitted" ) , "Could not construct Crossref submission url" ) ; } catch ( UnsupportedEncodingException ex ) { throw ex ; } return url ; }
Builds a url for registering crossref content.
Builds a url for registering crossref content .