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 |
Response.back()
Get back to the request it's related to.
|
Request |
RequestURI.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,
InputStream 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 |
FakeRequest.header(String name,
Object value) |
Request |
ApacheRequest.header(String name,
Object value) |
Request |
JdkRequest.header(String name,
Object value) |
Request |
FakeRequest.method(String method) |
Request |
ApacheRequest.method(String method) |
Request |
JdkRequest.method(String method) |
Request |
FakeRequest.reset(String name) |
Request |
ApacheRequest.reset(String name) |
Request |
JdkRequest.reset(String name) |
<T extends Wire> |
FakeRequest.through(Class<T> type,
Object... args) |
<T extends Wire> |
ApacheRequest.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.
|
Copyright © 2012–2015 jcabi.com. All rights reserved.