@Immutable public final class TransportClientFake extends Object implements com.vk.api.sdk.client.TransportClient
TransportClient with cached responses.| Constructor and Description |
|---|
TransportClientFake()
Ctor.
|
TransportClientFake(Map<String,com.vk.api.sdk.client.TransportClient> clients)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCached() |
boolean |
isTest() |
com.vk.api.sdk.client.ClientResponse |
post(String url) |
com.vk.api.sdk.client.ClientResponse |
post(String url,
String body) |
com.vk.api.sdk.client.ClientResponse |
post(String url,
String fileName,
File file) |
public TransportClientFake(Map<String,com.vk.api.sdk.client.TransportClient> clients)
clients - A TransportClient for each API endpoint.public TransportClientFake()
public com.vk.api.sdk.client.ClientResponse post(String url, String body) throws IOException
post in interface com.vk.api.sdk.client.TransportClientIOExceptionpublic com.vk.api.sdk.client.ClientResponse post(String url, String fileName, File file) throws IOException
post in interface com.vk.api.sdk.client.TransportClientIOExceptionpublic com.vk.api.sdk.client.ClientResponse post(String url) throws IOException
post in interface com.vk.api.sdk.client.TransportClientIOExceptionpublic boolean isCached()
isCached in interface com.vk.api.sdk.client.TransportClientpublic boolean isTest()
isTest in interface com.vk.api.sdk.client.TransportClientCopyright © 2017–2018 jcabi.com. All rights reserved.