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>
setExecutionRequestClientTimestamp(httpPost.getURI());
- HttpResponse respone = super.executeHttpPost(config, httpClient, httpPost);
+ HttpResponse response = super.executeHttpPost(config, httpClient, httpPost);
- setExecutionResponseHttpHeaderTimestamp(respone);
+ setExecutionResponseHttpHeaderTimestamp(response);
- return respone;
+ return response;
}
private void setExecutionRequestClientTimestamp(URI requestURI){
String dateTimeStr = date.format(DateTimeFormatter.ISO_DATE_TIME);
RemoteExecutionTimestampsUtil.setLastRequestClientTime(dateTimeStr);
if(requestURI != null){
- RemoteExecutionTimestampsUtil.setLastServiceMethod(requestURI.toString());
+ RemoteExecutionTimestampsUtil.setLastService(requestURI.toString());
}
}