@@ -53,6 +53,7 @@ public class OssIndexIntegration extends EndpointRouteBuilder {
5353
5454 @ Override
5555 public void configure () {
56+
5657 // fmt:off
5758 from (direct ("ossIndexScan" ))
5859 .routeId ("ossIndexScan" )
@@ -63,13 +64,13 @@ public void configure() {
6364 .transform ().method (OssIndexResponseHandler .class , "buildReport" )
6465 .endChoice ()
6566 .otherwise ()
66- .to (direct ("ossSplitReq" ));
67+ .to (direct ("ossSplitReq" ))
68+ .transform ().method (OssIndexResponseHandler .class , "buildReport" );
6769
6870 from (direct ("ossSplitReq" ))
6971 .routeId ("ossSplitReq" )
70- .doTry ()
71- .split (body (), AggregationStrategies .bean (OssIndexResponseHandler .class , "aggregateSplit" ))
72- .stopOnException ()
72+ .doTry ()
73+ .split (body (), AggregationStrategies .beanAllowNull (OssIndexResponseHandler .class , "aggregateSplit" ))
7374 .parallelProcessing ()
7475 .transform ().method (OssIndexRequestBuilder .class , "buildRequest" )
7576 .process (this ::processComponentRequest )
@@ -80,10 +81,9 @@ public void configure() {
8081 .end ()
8182 .to (vertxHttp ("{{api.ossindex.host}}" ))
8283 .transform (method (OssIndexResponseHandler .class , "responseToIssues" ))
83- .end ()
84- .transform ().method (OssIndexResponseHandler .class , "buildReport" )
85- .endDoTry ()
86- .doCatch (HttpOperationFailedException .class )
84+ .end ()
85+ .endDoTry ()
86+ .doCatch (HttpOperationFailedException .class )
8787 .process (responseHandler ::processResponseError );
8888
8989 from (direct ("ossValidateCredentials" ))
0 commit comments