Skip to content

Commit bb1e4bc

Browse files
authored
Merge pull request #38 from davidseywald/develop
Move Interceptor execution in own function, so we can override it.
2 parents 4291618 + f6c74ce commit bb1e4bc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/ReportService.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public Report executeReport(String reportName) throws FMSException {
292292
IntuitMessage intuitMessage = prepareReport(reportName);
293293

294294
// execute interceptors
295-
new IntuitInterceptorProvider().executeInterceptors(intuitMessage);
295+
executeInterceptors(intuitMessage);
296296

297297
Report report = null;
298298

@@ -303,7 +303,17 @@ public Report executeReport(String reportName) throws FMSException {
303303
}
304304
return report;
305305
}
306-
306+
307+
/**
308+
* Invokes interceptors, which perform networking operations (serialization, compression, connection etc)
309+
* @param intuitMessage
310+
* @throws FMSException
311+
*/
312+
protected void executeInterceptors(IntuitMessage intuitMessage) throws FMSException {
313+
new IntuitInterceptorProvider().executeInterceptors(intuitMessage);
314+
}
315+
316+
307317
/**
308318
* Common method to prepare the request params for Reports and for both sync and async calls
309319
*

0 commit comments

Comments
 (0)