public class DigipostApiMock extends Object implements io.undertow.server.HttpHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
DigipostApiMock.ContentPart |
static class |
DigipostApiMock.DigipostRequest |
static class |
DigipostApiMock.Method |
static class |
DigipostApiMock.MockRequest |
static class |
DigipostApiMock.MockResponse |
class |
DigipostApiMock.MultipartRequestMatcher |
static interface |
DigipostApiMock.RequestMatcher |
static class |
DigipostApiMock.RequestsAndResponses |
static interface |
DigipostApiMock.ResponseProducer |
| Modifier and Type | Field and Description |
|---|---|
org.apache.http.client.methods.CloseableHttpResponse |
defaultResponse |
| Constructor and Description |
|---|
DigipostApiMock(Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.client.methods.CloseableHttpResponse |
getDefaultResponse(Clock clock) |
void |
handleRequest(io.undertow.server.HttpServerExchange httpContext) |
void |
init() |
DigipostApiMock |
start(int port,
Map<DigipostApiMock.Method,DigipostApiMock.RequestsAndResponses> requestsAndResponsesMap,
KeyPair keyPair) |
void |
stop() |
public final org.apache.http.client.methods.CloseableHttpResponse defaultResponse
public DigipostApiMock(Clock clock)
public void handleRequest(io.undertow.server.HttpServerExchange httpContext)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerExceptionpublic DigipostApiMock start(int port, Map<DigipostApiMock.Method,DigipostApiMock.RequestsAndResponses> requestsAndResponsesMap, KeyPair keyPair)
public void stop()
public void init()
public static org.apache.http.client.methods.CloseableHttpResponse getDefaultResponse(Clock clock)
Copyright © 2019 Digipost. All rights reserved.