changeset 778:95f53a5be1be

sync with passus-net r216
author Devel 1
date Mon, 18 Dec 2017 23:56:27 +0100
parents 4318bf3f6464
children 1d0369d5006b
files stress-tester/src/main/java/com/passus/st/ReaderMain.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/ReaderMain.java	Mon Dec 18 23:47:57 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/ReaderMain.java	Mon Dec 18 23:56:27 2017 +0100
@@ -2,7 +2,9 @@
 
 import com.passus.data.DataSourceUtils;
 import com.passus.net.http.HttpRequest;
+import com.passus.net.http.HttpRequestEncoder;
 import com.passus.net.http.HttpResponse;
+import com.passus.net.http.HttpResponseEncoder;
 import com.passus.st.client.Event;
 import com.passus.st.client.SessionStatusEvent;
 import com.passus.st.client.http.HttpSessionPayloadEvent;
@@ -69,7 +71,7 @@
             HttpRequest req = payloadEvent.getRequest();
             if (req != null) {
                 try {
-                    req.writeTo(ps);
+                    HttpRequestEncoder.INSTANCE.encode(req, ps);
                     ps.println("");
                 } catch (IOException ex) {
                     logger.debug(ex.getMessage(), ex);
@@ -81,7 +83,7 @@
             HttpResponse resp = payloadEvent.getResponse();
             if (resp != null) {
                 try {
-                    resp.writeTo(ps);
+                    HttpResponseEncoder.INSTANCE.encode(resp, ps);
                     ps.println("");
                 } catch (IOException ex) {
                     logger.debug(ex.getMessage(), ex);