From 4fc12d0d87577f95c48b55d15058e41ae2b5d402 Mon Sep 17 00:00:00 2001 From: knowcenter Date: Mon, 3 Sep 2007 08:17:53 +0000 Subject: =?UTF-8?q?R=C3=BCckbau=20auf=20LocRef-Connector=20f=C3=BCr=20Webs?= =?UTF-8?q?ervice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@207 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../connectors/moa/MOASoapWithAttachmentConnector.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java index fc37dfc..34bcdc6 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapWithAttachmentConnector.java @@ -296,8 +296,22 @@ public class MOASoapWithAttachmentConnector implements Connector { try { + // for performance measurement + long startTime = 0; + if (log.isInfoEnabled()) { + startTime = System.currentTimeMillis(); + } + // Properties response_properties = MOASoapConnection.connectMOA(request_string, MOASoapConnection.SERVICE_SIGN, url); - Properties response_properties = MOASoapConnection.doPostRequestMultipart(url,MOASoapConnection.SERVICE_SIGN, request_string, data ); + Properties response_properties = MOASoapConnection.doPostRequestMultipart(url,mode, request_string, data ); + + // for performance measurement + if (log.isInfoEnabled()) { + long endTime = System.currentTimeMillis(); + String toReport = "MOA-PROCESSING;-;-;" + (endTime - startTime) + ";"; + log.info(toReport); + } + return response_properties; } catch (Exception e) -- cgit v1.2.3