Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2014-06-24 04:43:15 -0400
committerJan Bartel2014-06-24 04:43:15 -0400
commitfead772b64e27b9ed7421703e5a68a26522d0c4c (patch)
treef93288152997ce45a8e550ecd9aee3199be1f8ac /jetty-servlet
parentd92f6c6fd3ec5b804a5f18018b37af05e0dd6045 (diff)
downloadorg.eclipse.jetty.project-fead772b64e27b9ed7421703e5a68a26522d0c4c.tar.gz
org.eclipse.jetty.project-fead772b64e27b9ed7421703e5a68a26522d0c4c.tar.xz
org.eclipse.jetty.project-fead772b64e27b9ed7421703e5a68a26522d0c4c.zip
437706 ServletTester calls LocalConnector method with hardcoded timeout
Diffstat (limited to 'jetty-servlet')
-rw-r--r--jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java
index 2317195a18..965dd18de4 100644
--- a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java
+++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java
@@ -23,6 +23,7 @@ import java.nio.ByteBuffer;
import java.util.EnumSet;
import java.util.Enumeration;
import java.util.Map;
+import java.util.concurrent.TimeUnit;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
@@ -191,11 +192,21 @@ public class ServletTester extends ContainerLifeCycle
{
return _connector.getResponses(request);
}
-
+
+ public String getResponses(String request, long idleFor,TimeUnit units) throws Exception
+ {
+ return _connector.getResponses(request, idleFor, units);
+ }
+
public ByteBuffer getResponses(ByteBuffer request) throws Exception
{
return _connector.getResponses(request);
}
+
+ public ByteBuffer getResponses(ByteBuffer requestsBuffer,long idleFor,TimeUnit units) throws Exception
+ {
+ return _connector.getResponses(requestsBuffer, idleFor, units);
+ }
/* ------------------------------------------------------------ */
/** Create a port based connector.

Back to the top