2 * Copyright (C) 2020 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.remoting
;
12 * Singleton/static class to log the last httpInvoker
13 * request and response metadata.
14 * This is currently static to be easily accessible by MessagingUtils.
16 * Note: does not work clean in a multi-thread environment yet.
18 * @author a.kohlbecker
21 public class RemoteExecutionTimestampsUtil
{
23 private static String lastRequestClientTime
= null;
25 private static String lastResponseHeaderTime
= null;
27 private static String lastService
= null;
29 private static String lastMethod
= null;
32 public RemoteExecutionTimestampsUtil() {
35 static public String
getLastRequestClientTime() {
36 return lastRequestClientTime
;
39 static public void setLastRequestClientTime(String time
) {
40 lastRequestClientTime
= time
;
43 static public String
getLastResponseHttpHeaderTime() {
44 return lastResponseHeaderTime
;
47 static public void setLastResponseHttpHeaderTime(String time
) {
48 lastResponseHeaderTime
= time
;
51 static public String
getLastService() {
55 static public void setLastService(String lastService
) {
56 RemoteExecutionTimestampsUtil
.lastService
= lastService
;
59 static public String
getLastMethod() {
63 static public void setLastMethod(String lastMethod
) {
64 RemoteExecutionTimestampsUtil
.lastMethod
= lastMethod
;