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 |
static class |
DigipostApiMock.MultipartRequestMatcher |
static class |
DigipostApiMock.RequestMatcher |
static class |
DigipostApiMock.RequestsAndResponses |
static interface |
DigipostApiMock.ResponseProducer |
| Constructor and Description |
|---|
DigipostApiMock() |
| Modifier and Type | Method and Description |
|---|---|
List<DigipostApiMock.ContentPart> |
getContentparts(String multipartString) |
void |
handleRequest(io.undertow.server.HttpServerExchange httpContext) |
void |
init() |
DigipostApiMock |
start(int port,
Map<DigipostApiMock.Method,DigipostApiMock.RequestsAndResponses> requestsAndResponsesMap,
KeyPair keyPair) |
void |
stop() |
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 List<DigipostApiMock.ContentPart> getContentparts(String multipartString)
Copyright © 2016 Digipost Open Source. All rights reserved.