public class ClientServerSpecBase.TestSetup
extends java.lang.Object
Constructor and Description |
---|
TestSetup() |
Modifier and Type | Method and Description |
---|---|
scala.Tuple2<org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<HttpRequest>,org.apache.pekko.stream.testkit.TestPublisher.ManualProbe<HttpResponse>> |
acceptConnection() |
scala.concurrent.Future<Http.ServerBinding> |
binding() |
java.lang.String |
configOverrides() |
org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<Http.IncomingConnection> |
connSource() |
org.reactivestreams.Subscription |
connSourceSub() |
java.lang.String |
hostname() |
java.net.Socket |
openClientSocket() |
scala.Tuple2<org.apache.pekko.stream.testkit.TestPublisher.ManualProbe<HttpRequest>,org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<HttpResponse>> |
openNewClientConnection(ClientConnectionSettings settings) |
int |
port() |
scala.Tuple2<java.lang.String,java.io.BufferedReader> |
readAll(java.net.Socket socket,
java.io.BufferedReader reader) |
java.io.BufferedWriter |
write(java.net.Socket socket,
java.lang.String data) |
public scala.Tuple2<org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<HttpRequest>,org.apache.pekko.stream.testkit.TestPublisher.ManualProbe<HttpResponse>> acceptConnection()
public scala.concurrent.Future<Http.ServerBinding> binding()
public java.lang.String configOverrides()
public org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<Http.IncomingConnection> connSource()
public org.reactivestreams.Subscription connSourceSub()
public java.lang.String hostname()
public java.net.Socket openClientSocket()
public scala.Tuple2<org.apache.pekko.stream.testkit.TestPublisher.ManualProbe<HttpRequest>,org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<HttpResponse>> openNewClientConnection(ClientConnectionSettings settings)
public int port()
public scala.Tuple2<java.lang.String,java.io.BufferedReader> readAll(java.net.Socket socket, java.io.BufferedReader reader)
public java.io.BufferedWriter write(java.net.Socket socket, java.lang.String data)