You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/12/26 04:42:24 UTC
svn commit: r1884811 -
/pdfbox/trunk/examples/src/test/java/org/apache/wink/client/MockHttpServer.java
Author: tilman
Date: Sat Dec 26 04:42:24 2020
New Revision: 1884811
URL: http://svn.apache.org/viewvc?rev=1884811&view=rev
Log:
PDFBOX-5055: fix formatting; closes #100
Modified:
pdfbox/trunk/examples/src/test/java/org/apache/wink/client/MockHttpServer.java
Modified: pdfbox/trunk/examples/src/test/java/org/apache/wink/client/MockHttpServer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/test/java/org/apache/wink/client/MockHttpServer.java?rev=1884811&r1=1884810&r2=1884811&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/test/java/org/apache/wink/client/MockHttpServer.java (original)
+++ pdfbox/trunk/examples/src/test/java/org/apache/wink/client/MockHttpServer.java Sat Dec 26 04:42:24 2020
@@ -114,15 +114,14 @@ public class MockHttpServer extends Thre
private boolean serverStarted = false;
private ServerSocketFactory serverSocketFactory = null;
private int serverPort;
- private int readTimeOut = 5000; // 5
- // seconds
+ private int readTimeOut = 5000; // 5 seconds
private int delayResponseTime = 0;
- private static final byte[] NEW_LINE = "\r\n".getBytes();
+ private static final byte[] NEW_LINE = "\r\n".getBytes();
// request data
private String requestMethod = null;
private String requestUrl = null;
- private final Map<String, List<String>> requestHeaders = new HashMap<>();
- private final ByteArrayOutputStream requestContent = new ByteArrayOutputStream();
+ private final Map<String, List<String>> requestHeaders = new HashMap<>();
+ private final ByteArrayOutputStream requestContent = new ByteArrayOutputStream();
private final List<MockHttpServerResponse> mockHttpServerResponses = new ArrayList<>();
private int responseCounter = 0;