Package | Description |
---|---|
com.jcabi.http |
RESTful client, for tests (but not only).
|
com.jcabi.http.request |
Requests.
|
com.jcabi.http.response |
Responses.
|
com.jcabi.http.wire |
Wires.
|
Modifier and Type | Method and Description |
---|---|
<T extends Response> |
Response.as(Class<T> type)
Convert it to another type, by encapsulation.
|
Modifier and Type | Method and Description |
---|---|
Response |
Request.fetch()
Execute it with a specified HTTP method.
|
Response |
Request.fetch(InputStream stream)
Execute this request using the content provided by the
InputStream being passed as the request body. |
Response |
Wire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read)
Send request and return response.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultResponse
Default implementation of
Response . |
Modifier and Type | Method and Description |
---|---|
<T extends Response> |
DefaultResponse.as(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
Response |
JdkRequest.fetch() |
Response |
FakeRequest.fetch() |
Response |
BaseRequest.fetch() |
Response |
ApacheRequest.fetch() |
Response |
JdkRequest.fetch(InputStream stream) |
Response |
FakeRequest.fetch(InputStream stream) |
Response |
BaseRequest.fetch(InputStream stream) |
Response |
ApacheRequest.fetch(InputStream stream) |
Modifier and Type | Class and Description |
---|---|
class |
JacksonResponse
A JSON response provided by the Jackson Project.
|
class |
JsonResponse
JSON response.
|
class |
JsoupResponse
Jsoup response.
|
class |
RestResponse
REST response.
|
class |
WebLinkingResponse
Web Linking response.
|
class |
XmlResponse
XML response.
|
Modifier and Type | Method and Description |
---|---|
RestResponse |
RestResponse.assertThat(org.hamcrest.Matcher<Response> matcher)
Assert using custom matcher.
|
Constructor and Description |
---|
JacksonResponse(Response resp)
Ctor.
|
JsonResponse(Response resp)
Public ctor.
|
JsoupResponse(Response resp)
Public ctor.
|
RestResponse(Response resp)
Public ctor.
|
WebLinkingResponse(Response resp)
Public ctor.
|
XmlResponse(Response resp)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Response |
AbstractHeaderBasedCachingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
FcWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
RetryWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
CookieOptimizingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
UserAgentWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
VerboseWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
TrustedWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
OneMinuteWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
CachingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
BasicAuthWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Response |
AutoRedirectingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Constructor and Description |
---|
CachingWire(Wire wire,
com.google.common.cache.LoadingCache<Callable<Response>,Response> storage)
Public ctor.
|
CachingWire(Wire wire,
com.google.common.cache.LoadingCache<Callable<Response>,Response> storage)
Public ctor.
|
CachingWire(Wire wire,
String flsh,
com.google.common.cache.LoadingCache<Callable<Response>,Response> storage)
Public ctor.
|
CachingWire(Wire wire,
String flsh,
com.google.common.cache.LoadingCache<Callable<Response>,Response> storage)
Public ctor.
|
Copyright © 2012–2021 jcabi.com. All rights reserved.