USRE-84 format source code and init build for it

This commit is contained in:
YuCheng Hu 2021-11-25 07:46:42 -05:00
parent 6fab43d9bc
commit 6841f32a63
1 changed files with 4 additions and 3 deletions

View File

@ -108,13 +108,14 @@ public class RETSConnection extends java.lang.Object {
/** /**
* Executes a transaction * Executes a transaction
* *
* @param RETSTransaction transaction to execute * @param transaction transaction to execute
* @param asStream
*/ */
public void execute(RETSTransaction transaction, boolean asStream) { public void execute(RETSTransaction transaction, boolean asStream) {
java.util.Date dt1 = new Date(); java.util.Date dt1 = new Date();
STREAMRESPONSE = asStream; STREAMRESPONSE = asStream;
if ( transaction instanceof RETSGetObjectTransaction ) { if (transaction instanceof RETSGetObjectTransaction) {
setRequestHeaderField("Accept", getImageAccept()); setRequestHeaderField("Accept", getImageAccept());
} else { } else {
setRequestHeaderField("Accept", "*/*"); setRequestHeaderField("Accept", "*/*");
@ -478,7 +479,7 @@ public class RETSConnection extends java.lang.Object {
transaction.setResponseHeaderMap(this.responseHeaderMap); transaction.setResponseHeaderMap(this.responseHeaderMap);
if ((transaction instanceof RETSGetObjectTransaction && (! transaction.getResponseHeader("Content-Type").startsWith("text/xml"))) || STREAMRESPONSE) { if ((transaction instanceof RETSGetObjectTransaction && (!transaction.getResponseHeader("Content-Type").startsWith("text/xml"))) || STREAMRESPONSE) {
transaction.setResponseStream(is); transaction.setResponseStream(is);
} else { } else {
String contents = null; String contents = null;