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()
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)
-
-