Package org.mockserver.echo.http
Class EchoServer
- java.lang.Object
-
- org.mockserver.echo.http.EchoServer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Stoppable
public class EchoServer extends Object implements Stoppable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EchoServer.Error
static class
EchoServer.NextResponse
-
Constructor Summary
Constructors Constructor Description EchoServer(boolean secure)
EchoServer(boolean secure, EchoServer.Error error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
EchoServer
public EchoServer(boolean secure)
-
EchoServer
public EchoServer(boolean secure, EchoServer.Error error)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getPort
public Integer getPort()
-
mockServerEventLog
public MockServerEventLog mockServerEventLog()
-
withNextResponse
public void withNextResponse(HttpResponse... httpResponses)
-
clearNextResponse
public void clearNextResponse()
-
getWebsocketChannels
public List<io.netty.channel.Channel> getWebsocketChannels()
-
getTextWebSocketFrames
public List<io.netty.handler.codec.http.websocketx.TextWebSocketFrame> getTextWebSocketFrames()
-
-