public class DummyHttpClient extends HttpClient<String>
APPLICATION_FORM_URLENCODED, APPLICATION_JSON, APPLICATION_OCTET_STREAM, APPLICATION_XML, MULTIPART_FORM_DATA, request, TEXT_PLAIN| Constructor and Description |
|---|
DummyHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCookie(Cookie cookie) |
protected void |
buildHeader(String name,
Object value,
boolean replace) |
protected void |
buildParam(String name,
Object... values) |
protected void |
buildPath(String path) |
protected void |
buildUrl(String url) |
void |
configure(Config config,
ScenarioContext context)
guaranteed to be called once if empty constructor was used
|
protected String |
getEntity(InputStream value,
String mediaType) |
protected String |
getEntity(List<MultiPartItem> items,
String mediaType) |
protected String |
getEntity(MultiValuedMap fields,
String mediaType) |
protected String |
getEntity(String value,
String mediaType) |
protected String |
getRequestUri() |
protected HttpResponse |
makeHttpRequest(String entity,
ScenarioContext context) |
construct, construct, invokepublic void configure(Config config, ScenarioContext context)
HttpClientconfigure in class HttpClient<String>protected String getEntity(List<MultiPartItem> items, String mediaType)
getEntity in class HttpClient<String>protected String getEntity(MultiValuedMap fields, String mediaType)
getEntity in class HttpClient<String>protected String getEntity(String value, String mediaType)
getEntity in class HttpClient<String>protected String getEntity(InputStream value, String mediaType)
getEntity in class HttpClient<String>protected void buildUrl(String url)
buildUrl in class HttpClient<String>protected void buildPath(String path)
buildPath in class HttpClient<String>protected void buildParam(String name, Object... values)
buildParam in class HttpClient<String>protected void buildHeader(String name, Object value, boolean replace)
buildHeader in class HttpClient<String>protected void buildCookie(Cookie cookie)
buildCookie in class HttpClient<String>protected HttpResponse makeHttpRequest(String entity, ScenarioContext context)
makeHttpRequest in class HttpClient<String>protected String getRequestUri()
getRequestUri in class HttpClient<String>Copyright © 2019. All rights reserved.