public class EchoServer extends Object implements Stoppable
Modifier and Type | Class and Description |
---|---|
static class |
EchoServer.Error |
static class |
EchoServer.NextResponse |
Constructor and Description |
---|
EchoServer(boolean secure) |
EchoServer(boolean secure,
EchoServer.Error error) |
EchoServer(boolean secure,
io.netty.handler.ssl.SslContext sslContext,
EchoServer.Error error) |
EchoServer(io.netty.handler.ssl.SslContext sslContext) |
Modifier and Type | Method and Description |
---|---|
void |
clearNextResponse() |
void |
close() |
Integer |
getPort() |
List<String> |
getRegisteredClients() |
List<io.netty.handler.codec.http.websocketx.TextWebSocketFrame> |
getTextWebSocketFrames() |
List<io.netty.channel.Channel> |
getWebsocketChannels() |
MockServerEventLog |
mockServerEventLog() |
void |
stop() |
void |
withNextResponse(HttpResponse... httpResponses) |
public EchoServer(boolean secure)
public EchoServer(io.netty.handler.ssl.SslContext sslContext)
public EchoServer(boolean secure, EchoServer.Error error)
public EchoServer(boolean secure, io.netty.handler.ssl.SslContext sslContext, EchoServer.Error error)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public Integer getPort()
public MockServerEventLog mockServerEventLog()
public void withNextResponse(HttpResponse... httpResponses)
public void clearNextResponse()
public List<io.netty.channel.Channel> getWebsocketChannels()
public List<io.netty.handler.codec.http.websocketx.TextWebSocketFrame> getTextWebSocketFrames()
Copyright © 2020. All rights reserved.