cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 15 Jun 2022 10:04:29 +0000 (12:04 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 15 Jun 2022 10:04:29 +0000 (12:04 +0200)
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/service/TimestampingHttpInvokerRequestExecutor.java
eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/springframework/remoting/httpinvoker/CachingHttpInvokerProxyFactoryBean.java

index 7dd57e825bcfed180bfa8db638737dd845a7b33b..44c085fedbe0eb416a1aab4f80f83f01b8637bd8 100644 (file)
@@ -31,7 +31,8 @@ import org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration;
 import eu.etaxonomy.taxeditor.remoting.RemoteExecutionTimestampsUtil;
 
 /**
- * HttpInvokerRequestExecutor which extends the {@link HttpComponentsHttpInvokerRequestExecutor} by two functionalities:
+ * HttpInvokerRequestExecutor which extends the spring
+ * {@link HttpComponentsHttpInvokerRequestExecutor} by two functionalities:
  *
  * <ol>
  * <li>Records time stamps when sending the request and when receiving the response.</li>
index 750ee4c356f6e4dd296f37b5c6cd717a45d2f2fa..93c680150ab5fb65d5d6f7b0c5a4ca46a254c2d1 100644 (file)
@@ -12,7 +12,8 @@ import java.util.HashSet;
 import java.util.Set;
 
 import org.aopalliance.intercept.MethodInvocation;
-import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
 import org.springframework.remoting.support.RemoteInvocation;
 import org.springframework.remoting.support.RemoteInvocationResult;
 
@@ -29,7 +30,7 @@ import eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager;
  * <b>Performance measurement:</b></br>
  * Supports measuring the request processing time at the client side. Setting "{@value #PROP_KEY_MEASURE_DURATION}"
  * as system parameter enables the measurement. To make the measurements appear for each request in the log, the logging <code>Level</code>
- * for <code>HttpInvokerProxyFactoryBean</code> needs to be set to at least {@link org.apache.logging.log4j.Level#INFO}. 
+ * for <code>HttpInvokerProxyFactoryBean</code> needs to be set to at least {@link org.apache.logging.log4j.Level#INFO}.
  * Otherwise the duration is only reported in case of errors.
  *
  * @author a.kohlbecker
@@ -84,6 +85,7 @@ public class CachingHttpInvokerProxyFactoryBean extends HttpInvokerProxyFactoryB
 
     private RemoteInvocationResult handleGeneralRequest(RemoteInvocation invocation,
             MethodInvocation originalInvocation) throws Exception {
+
         RemoteInvocationResult invocationResult = doExecuteRequest(invocation, originalInvocation);
         if(invocationResult.getValue() != null && !invocationResult.hasException()) {
 
@@ -116,6 +118,7 @@ public class CachingHttpInvokerProxyFactoryBean extends HttpInvokerProxyFactoryB
 
     private RemoteInvocationResult handleTermRequest(RemoteInvocation invocation, MethodInvocation originalInvocation)
             throws Exception {
+
         RemoteInvocationResult invocationResult = null;
         if(remoteInvocationTermCacher != null){
             invocationResult = remoteInvocationTermCacher.termsFromCache(invocation);