public class InMemoryClientExecutor extends Object implements ClientExecutor
Modifier and Type | Field and Description |
---|---|
protected URI |
baseUri |
protected Dispatcher |
dispatcher |
Constructor and Description |
---|
InMemoryClientExecutor() |
InMemoryClientExecutor(Dispatcher dispatcher) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commitHeaders(ClientRequest request,
MockHttpRequest mockHttpRequest) |
ClientRequest |
createRequest(String uriTemplate) |
ClientRequest |
createRequest(UriBuilder uriBuilder) |
protected BaseClientResponse |
createResponse(ClientRequest request,
MockHttpResponse mockResponse) |
static BaseClientResponse.BaseClientResponseStreamFactory |
createStreamFactory(MockHttpResponse mockResponse) |
ClientResponse |
execute(ClientRequest request) |
URI |
getBaseUri() |
Dispatcher |
getDispatcher() |
Registry |
getRegistry() |
void |
loadHttpMethod(ClientRequest request,
MockHttpRequest mockHttpRequest) |
void |
setBaseUri(URI baseUri) |
protected void |
setHeaders(MockHttpResponse mockResponse,
BaseClientResponse response) |
protected Dispatcher dispatcher
protected URI baseUri
public InMemoryClientExecutor()
public InMemoryClientExecutor(Dispatcher dispatcher)
public URI getBaseUri()
public void setBaseUri(URI baseUri)
public ClientRequest createRequest(String uriTemplate)
createRequest
in interface ClientExecutor
public ClientRequest createRequest(UriBuilder uriBuilder)
createRequest
in interface ClientExecutor
public ClientResponse execute(ClientRequest request) throws Exception
execute
in interface ClientExecutor
Exception
protected BaseClientResponse createResponse(ClientRequest request, MockHttpResponse mockResponse)
protected void setHeaders(MockHttpResponse mockResponse, BaseClientResponse response)
public static BaseClientResponse.BaseClientResponseStreamFactory createStreamFactory(MockHttpResponse mockResponse)
public void loadHttpMethod(ClientRequest request, MockHttpRequest mockHttpRequest) throws Exception
Exception
public void commitHeaders(ClientRequest request, MockHttpRequest mockHttpRequest)
public Registry getRegistry()
public Dispatcher getDispatcher()
public void close()
close
in interface ClientExecutor
Copyright © 2017 JBoss by Red Hat. All rights reserved.