public class XsuaaRequestDispatcher
extends okhttp3.mockwebserver.Dispatcher
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected static String |
PATH_PUBLIC_KEY |
protected static String |
PATH_TOKEN_KEYS_TEMPLATE |
protected static String |
RESPONSE_401 |
protected static String |
RESPONSE_404 |
protected static String |
RESPONSE_500 |
| Constructor and Description |
|---|
XsuaaRequestDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.mockwebserver.MockResponse |
dispatch(okhttp3.mockwebserver.RecordedRequest request) |
static int |
getCallCount() |
protected okhttp3.mockwebserver.MockResponse |
getInternalErrorResponse(String message) |
protected okhttp3.mockwebserver.MockResponse |
getResponse(String message,
org.springframework.http.HttpStatus status) |
protected okhttp3.mockwebserver.MockResponse |
getResponseFromFile(String path,
org.springframework.http.HttpStatus status) |
protected okhttp3.mockwebserver.MockResponse |
getTokenKeyForKeyId(String pathToTemplate,
String keyId) |
protected String |
readFromFile(String path) |
protected static final String RESPONSE_404
protected static final String RESPONSE_401
protected static final String RESPONSE_500
protected static final String PATH_TOKEN_KEYS_TEMPLATE
protected static final String PATH_PUBLIC_KEY
protected final org.slf4j.Logger logger
public okhttp3.mockwebserver.MockResponse dispatch(okhttp3.mockwebserver.RecordedRequest request)
dispatch in class okhttp3.mockwebserver.Dispatcherprotected okhttp3.mockwebserver.MockResponse getResponseFromFile(String path, org.springframework.http.HttpStatus status)
protected okhttp3.mockwebserver.MockResponse getResponse(String message, org.springframework.http.HttpStatus status)
protected okhttp3.mockwebserver.MockResponse getTokenKeyForKeyId(String pathToTemplate, String keyId)
protected String readFromFile(String path) throws IOException
IOExceptionprotected okhttp3.mockwebserver.MockResponse getInternalErrorResponse(String message)
public static int getCallCount()
Copyright © 2020. All rights reserved.