From caf09420c13783519f57351666ad81b3c65d942f Mon Sep 17 00:00:00 2001 From: knowcenter Date: Mon, 14 May 2007 14:17:33 +0000 Subject: removed the debug file output git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@74 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../bku/DetachedMultipartBKUConnector.java | 54 +++++++++------------- 1 file changed, 22 insertions(+), 32 deletions(-) (limited to 'src/main/java/at/knowcenter/wag') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java index b30c9e2..6c30655 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/DetachedMultipartBKUConnector.java @@ -124,17 +124,17 @@ public class DetachedMultipartBKUConnector String response_string = response_properties.getProperty(BKUPostConnection.RESPONSE_STRING_KEY); // TODO debug - try - { - FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\sign_response.utf8.xml"); //$NON-NLS-1$ - OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); //$NON-NLS-1$ - osw.write(response_string); - osw.close(); - } - catch (Exception e) - { - log.error(e); - } +// try +// { +// FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\sign_response.utf8.xml"); //$NON-NLS-1$ +// OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); //$NON-NLS-1$ +// osw.write(response_string); +// osw.close(); +// } +// catch (Exception e) +// { +// log.error(e); +// } checkResponseForError(response_string); @@ -541,17 +541,6 @@ public class DetachedMultipartBKUConnector String url = this.environment.getSignURL(); Properties response_properties = sendRequest(url, sign_request_xml, data); - try - { - FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\sign_response.utf8.xml"); //$NON-NLS-1$ - fos.write(response_properties.getProperty("response_string").getBytes("UTF-8")); //$NON-NLS-1$ //$NON-NLS-2$ - fos.close(); - } - catch (Exception e) - { - log.error(e); - } - SignSignatureObject sso = analyzeSignResponse(response_properties); // TODO this could be made more generic @@ -579,16 +568,17 @@ public class DetachedMultipartBKUConnector String verify_request_xml = prepareVerifyRequestDetached(data, so); log.debug("verify_request_xml = " + verify_request_xml); //$NON-NLS-1$ - try - { - FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\verify_request.utf8.xml"); //$NON-NLS-1$ - fos.write(verify_request_xml.getBytes("UTF-8")); //$NON-NLS-1$ - fos.close(); - } - catch (Exception e) - { - log.error(e); - } + // TODO debug +// try +// { +// FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\verify_request.utf8.xml"); //$NON-NLS-1$ +// fos.write(verify_request_xml.getBytes("UTF-8")); //$NON-NLS-1$ +// fos.close(); +// } +// catch (Exception e) +// { +// log.error(e); +// } String url = this.environment.getVerifyURL(); Properties response_properties = sendRequest(url, verify_request_xml, data); -- cgit v1.2.3