src/main/java/gov/usgs/cida/pubs/busservice/CrossRefBusService.java
protected void handleResponse(HttpResponse response) throws HttpException {
		String exceptionMessage = null;
		if (null == response) {
			exceptionMessage = "Response was null.";
		} else if (null == response.getStatusLine()) {
			exceptionMessage = "Response status line was null.";
		} else if (HttpStatus.SC_OK != response.getStatusLine().getStatusCode()) {
			exceptionMessage = response.getStatusLine().toString();
		}
		if(null != exceptionMessage) {
			throw new HttpException("Error in response from Crossref Submission: " + exceptionMessage);
		}
	}
/**
	 * Check the response from Crossref web services, throw an 
	 * HttpException with a descriptive message if anything is wrong.
	 * @param response 
	 * @throws HttpException when the Crossref web services return an error
	 */
Check the response from Crossref web services, throw an
HttpException with a descriptive message if anything is wrong.
@param response
@throws HttpException when the Crossref web services return an error
Check the response from Crossref web services throw an HttpException with a descriptive message if anything is wrong . @param response @throws HttpException when the Crossref web services return an error
protected void handleResponse(HttpResponse response) throws HttpException {
		String exceptionMessage = null;
		if (null == response) {
			exceptionMessage = "Response was null.";
		} else if (null == response.getStatusLine()) {
			exceptionMessage = "Response status line was null.";
		} else if (HttpStatus.SC_OK != response.getStatusLine().getStatusCode()) {
			exceptionMessage = response.getStatusLine().toString();
		}
		if(null != exceptionMessage) {
			throw new HttpException("Error in response from Crossref Submission: " + exceptionMessage);
		}
	}
protected void handleResponse ( HttpResponse response ) throws HttpException { String exceptionMessage = null ; if ( null == response ) { exceptionMessage = "Response was null." ; } else if ( null == response . getStatusLine ( ) ) { exceptionMessage = "Response status line was null." ; } else if ( HttpStatus . SC_OK != response . getStatusLine ( ) . getStatusCode ( ) ) { exceptionMessage = response . getStatusLine ( ) . toString ( ) ; } if ( null != exceptionMessage ) { throw new HttpException ( "Error in response from Crossref Submission: " + exceptionMessage ) ; } }
Check the response from Crossref web services, throw an
 HttpException with a descriptive message if anything is wrong.
Check the response from Crossref web services throw an HttpException with a descriptive message if anything is wrong .