src/main/java/gov/usgs/cida/pubs/webservice/pw/PwPublicationMvcService.java
protected void writeCrossrefForPub(HttpServletResponse response, PwPublication pub) throws IOException {
		try (
				OutputStream outputStream = response.getOutputStream();
				CrossrefTransformer transformer = new CrossrefTransformer(
						outputStream,
						templateConfiguration,
						configurationService
					);
			) {
			response.setCharacterEncoding(PubsConstantsHelper.DEFAULT_ENCODING);
			response.setContentType(PubsConstantsHelper.MEDIA_TYPE_CROSSREF_VALUE);
			response.setHeader(MIME.CONTENT_DISPOSITION, "inline");
			transformer.write(pub);
			transformer.end();
		}
	}
/**
	 * Writes the specified USGS Series Publication to Crossref XML.
	 * This method will error if the specified publication is not a USGS Series.
	 * @param response
	 * @param pub
	 * @throws IOException 
	 */
Writes the specified USGS Series Publication to Crossref XML.
This method will error if the specified publication is not a USGS Series.
@param response
@param pub
@throws IOException
Writes the specified USGS Series Publication to Crossref XML . This method will error if the specified publication is not a USGS Series . @param response @param pub @throws IOException
protected void writeCrossrefForPub(HttpServletResponse response, PwPublication pub) throws IOException {
		try (
				OutputStream outputStream = response.getOutputStream();
				CrossrefTransformer transformer = new CrossrefTransformer(
						outputStream,
						templateConfiguration,
						configurationService
					);
			) {
			response.setCharacterEncoding(PubsConstantsHelper.DEFAULT_ENCODING);
			response.setContentType(PubsConstantsHelper.MEDIA_TYPE_CROSSREF_VALUE);
			response.setHeader(MIME.CONTENT_DISPOSITION, "inline");
			transformer.write(pub);
			transformer.end();
		}
	}
protected void writeCrossrefForPub ( HttpServletResponse response , PwPublication pub ) throws IOException { try ( OutputStream outputStream = response . getOutputStream ( ) ; CrossrefTransformer transformer = new CrossrefTransformer ( outputStream , templateConfiguration , configurationService ) ; ) { response . setCharacterEncoding ( PubsConstantsHelper . DEFAULT_ENCODING ) ; response . setContentType ( PubsConstantsHelper . MEDIA_TYPE_CROSSREF_VALUE ) ; response . setHeader ( MIME . CONTENT_DISPOSITION , "inline" ) ; transformer . write ( pub ) ; transformer . end ( ) ; } }
Writes the specified USGS Series Publication to Crossref XML.
Writes the specified USGS Series Publication to Crossref XML .