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
class
EchoServer.NextResponse
class
EchoServer.OnlyResponse
-
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
close()
Integer
getPort()
List<String>
getRegisteredClients()
List<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
getTextWebSocketFrames()
List<io.netty.channel.Channel>
getWebsocketChannels()
MockServerEventLog
requestLogFilter()
void
stop()
EchoServer
withNextResponse(HttpResponse... httpResponses)
EchoServer
withOnlyResponse(HttpResponse httpResponse)
-
-
-
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()
-
requestLogFilter
public MockServerEventLog requestLogFilter()
-
withNextResponse
public EchoServer withNextResponse(HttpResponse... httpResponses)
-
withOnlyResponse
public EchoServer withOnlyResponse(HttpResponse httpResponse)
-
getWebsocketChannels
public List<io.netty.channel.Channel> getWebsocketChannels()
-
getTextWebSocketFrames
public List<io.netty.handler.codec.http.websocketx.TextWebSocketFrame> getTextWebSocketFrames()
-
-