public interface CompatibilityFactory
Context createHttpContext(Request request, Response response)
Request createHttpRequest(Method httpMethod, StringBuilder queryUrlBuilder, HttpHeaders headers, Map<String,Object> queryParameters, List<AbstractMap.SimpleEntry<String,Object>> formParameters)
httpMethod - A Http Method MethodqueryUrlBuilder - The UrlBuilderheaders - The Request HttpHeadersqueryParameters - Map of query parametersformParameters - List of form parametersRequestRequest createHttpRequest(Method httpMethod, StringBuilder queryUrlBuilder, HttpHeaders headers, Map<String,Object> queryParameters, Object body)
httpMethod - A Http Method MethodqueryUrlBuilder - The urlBuilderheaders - The request HttpHeadersqueryParameters - Map of query parametersbody - The request bodyRequestResponse createHttpResponse(int code, HttpHeaders headers, InputStream rawBody)
code - A response codeheaders - The response HttpHeadersrawBody - The response InputStreamResponseResponse createHttpResponse(int code, HttpHeaders headers, InputStream rawBody, String body)
code - A response codeheaders - The response HttpHeadersrawBody - The response InputStreambody - The response bodyResponseHttpHeaders createHttpHeaders(Map<String,List<String>> headers)
HttpHeadersheaders - Map of headersHttpHeadersHttpHeaders createHttpHeaders(HttpHeaders headers)
HttpHeadersheaders - An instance of HttpHeadersHttpHeadersHttpHeaders createHttpHeaders()
HttpHeadersDynamicType createDynamicResponse(Response httpResponse)
DynamicTypehttpResponse - An instance of ResponseDynamicType}<T> ApiResponseType<T> createApiResponse(int statusCode, HttpHeaders headers, T result)
ApiResponseTypeT - The type which will be enclose by ApiResponseTypestatusCode - A response codeheaders - An instance of HttpHeadersresult - The responseApiResponseTypeCopyright © 2023. All rights reserved.