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 |
RequestBody.back()
Get back to the request it's related to.
|
Request |
RequestURI.back()
Get back to the request it's related to.
|
Request |
Response.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 . |
Modifier and Type | Method and Description |
---|---|
Response |
Wire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
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 |
ApacheRequest.header(String name,
Object value) |
Request |
FakeRequest.header(String name,
Object value) |
Request |
JdkRequest.header(String name,
Object value) |
Request |
ApacheRequest.method(String method) |
Request |
FakeRequest.method(String method) |
Request |
JdkRequest.method(String method) |
Request |
ApacheRequest.reset(String name) |
Request |
FakeRequest.reset(String name) |
Request |
JdkRequest.reset(String name) |
<T extends Wire> |
ApacheRequest.through(Class<T> type,
Object... args) |
<T extends Wire> |
FakeRequest.through(Class<T> type,
Object... args) |
<T extends Wire> |
JdkRequest.through(Class<T> type,
Object... args) |
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 |
CachingWire.get(Request req,
String home,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Fetch GET request and cache it.
|
Response |
BasicAuthWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Response |
CachingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Response |
CookieOptimizingWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Response |
OneMinuteWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Response |
RetryWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Response |
UserAgentWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Response |
VerboseWire.send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
byte[] content)
Send request and return response.
|
Copyright © 2012–2014 jcabi.com. All rights reserved.