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 |
---|---|
Request |
Response.back()
Get back to the request it's related to.
|
Request |
RequestURI.back()
Get back to the request it's related to.
|
Request |
RequestBody.back()
Get back to the request it's related to.
|
Request |
Request.header(String name,
Object value)
Set request header.
|
Request |
Request.method(String method)
Use this method.
|
Request |
Request.reset(String name)
Remove all headers with this name.
|
<T extends Wire> |
Request.through(Class<T> type,
Object... args)
Send it through a decorating
Wire . |
Request |
Request.timeout(int connect,
int read)
Use this timeout values.
|
Modifier and Type | Method and Description |
---|---|
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 |
ApacheRequest
Implementation of
Request ,
based on Apache HTTP client. |
class |
FakeRequest
Implementation of
Request that always returns the same
response, specified in the constructor. |
class |
JdkRequest
Implementation of
Request , based on JDK. |
Modifier and Type | Method and Description |
---|---|
Request |
DefaultResponse.back() |
Request |
JdkRequest.header(String name,
Object value) |
Request |
FakeRequest.header(String name,
Object value) |
Request |
ApacheRequest.header(String name,
Object value) |
Request |
JdkRequest.method(String method) |
Request |
FakeRequest.method(String method) |
Request |
ApacheRequest.method(String method) |
Request |
JdkRequest.reset(String name) |
Request |
FakeRequest.reset(String name) |
Request |
ApacheRequest.reset(String name) |
<T extends Wire> |
JdkRequest.through(Class<T> type,
Object... args) |
<T extends Wire> |
FakeRequest.through(Class<T> type,
Object... args) |
<T extends Wire> |
ApacheRequest.through(Class<T> type,
Object... args) |
Request |
JdkRequest.timeout(int connect,
int read) |
Request |
FakeRequest.timeout(int connect,
int read) |
Request |
ApacheRequest.timeout(int connect,
int read) |
Constructor and Description |
---|
DefaultResponse(Request request,
int status,
String reason,
com.jcabi.immutable.Array<Map.Entry<String,String>> headers,
byte[] body)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Request |
RestResponse.follow()
Follow LOCATION header.
|
Request |
WebLinkingResponse.follow(String rel)
Follow link by REL.
|
Request |
RestResponse.jump(URI uri)
Jump to a new location.
|
Request |
XmlResponse.rel(String query)
Follow XML link.
|
Modifier and Type | Method and Description |
---|---|
Response |
VerboseWire.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 |
TrustedWire.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 |
OneMinuteWire.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 |
CookieOptimizingWire.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) |
Response |
AbstractHeaderBasedCachingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content,
int connect,
int read) |
Copyright © 2012–2016 jcabi.com. All rights reserved.