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>
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;
* <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
private RemoteInvocationResult handleGeneralRequest(RemoteInvocation invocation,
MethodInvocation originalInvocation) throws Exception {
+
RemoteInvocationResult invocationResult = doExecuteRequest(invocation, originalInvocation);
if(invocationResult.getValue() != null && !invocationResult.hasException()) {
private RemoteInvocationResult handleTermRequest(RemoteInvocation invocation, MethodInvocation originalInvocation)
throws Exception {
+
RemoteInvocationResult invocationResult = null;
if(remoteInvocationTermCacher != null){
invocationResult = remoteInvocationTermCacher.termsFromCache(invocation);