A B C D E F G H I J L M N O P Q R S T U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractHeaderBasedCachingWire - Class in com.jcabi.http.wire
-
This is the base class to handle http responses with 304 state.
- ApacheRequest - Class in com.jcabi.http.request
-
Implementation of
Request
, based on Apache HTTP client. - ApacheRequest(String) - Constructor for class com.jcabi.http.request.ApacheRequest
-
Public ctor.
- ApacheRequest(URI) - Constructor for class com.jcabi.http.request.ApacheRequest
-
Public ctor.
- ApacheRequest(URL) - Constructor for class com.jcabi.http.request.ApacheRequest
-
Public ctor.
- append(byte[]) - Method in class com.jcabi.http.request.MultipartBodyBuilder
-
Append byte array to this multipart body.
- appendLine(byte[]) - Method in class com.jcabi.http.request.MultipartBodyBuilder
-
Append byte array to this multipart body including carriage return.
- as(Class<T>) - Method in class com.jcabi.http.request.DefaultResponse
- as(Class<T>) - Method in interface com.jcabi.http.Response
-
Convert it to another type, by encapsulation.
- asBytes() - Method in class com.jcabi.http.request.MultipartBodyBuilder
-
Bytes of multipart body.
- assertBinary(Matcher<byte[]>) - Method in class com.jcabi.http.response.RestResponse
-
Verifies HTTP response body content against provided matcher, and throws
AssertionError
in case of mismatch. - assertBody(Matcher<String>) - Method in class com.jcabi.http.response.RestResponse
-
Verifies HTTP response body content against provided matcher, and throws
AssertionError
in case of mismatch. - assertHeader(String, String) - Method in class com.jcabi.http.response.RestResponse
-
Verifies HTTP header against provided matcher, and throws
AssertionError
in case of mismatch. - assertHeader(String, Matcher<? super Iterable<String>>) - Method in class com.jcabi.http.response.RestResponse
-
Verifies HTTP header against provided matcher, and throws
AssertionError
in case of mismatch. - assertJson(String) - Method in class com.jcabi.http.response.JsonResponse
-
Verifies the JSON data against the element identifier argument, and throws
AssertionError
in case of mismatch. - assertStatus(int) - Method in class com.jcabi.http.response.RestResponse
-
Verifies HTTP response status code against the provided absolute value, and throws
AssertionError
in case of mismatch. - assertStatus(Matcher<Integer>) - Method in class com.jcabi.http.response.RestResponse
-
Verifies HTTP response status code against the provided matcher, and throws
AssertionError
in case of mismatch. - assertThat(Matcher<Response>) - Method in class com.jcabi.http.response.RestResponse
-
Assert using custom matcher.
- assertXPath(String) - Method in class com.jcabi.http.response.XmlResponse
-
Verifies HTTP response body XHTML/XML content against XPath query, and throws
AssertionError
in case of mismatch. - AutoRedirectingWire - Class in com.jcabi.http.wire
-
Auto Redirecting Wire.
- AutoRedirectingWire(Wire) - Constructor for class com.jcabi.http.wire.AutoRedirectingWire
-
Public ctor.
- AutoRedirectingWire(Wire, int) - Constructor for class com.jcabi.http.wire.AutoRedirectingWire
-
Public ctor.
B
- back() - Method in class com.jcabi.http.request.DefaultResponse
- back() - Method in interface com.jcabi.http.RequestBody
-
Get back to the request it's related to.
- back() - Method in interface com.jcabi.http.RequestURI
-
Get back to the request it's related to.
- back() - Method in interface com.jcabi.http.Response
-
Get back to the request it's related to.
- BaseRequest - Class in com.jcabi.http.request
-
Base implementation of
Request
. - BaseRequest(Wire, String) - Constructor for class com.jcabi.http.request.BaseRequest
-
Public ctor.
- BaseRequest(Wire, String, Iterable<Map.Entry<String, String>>, String, byte[]) - Constructor for class com.jcabi.http.request.BaseRequest
-
Public ctor.
- BaseRequest(Wire, String, Iterable<Map.Entry<String, String>>, String, byte[], int, int) - Constructor for class com.jcabi.http.request.BaseRequest
-
Public ctor.
- BasicAuthWire - Class in com.jcabi.http.wire
-
Wire with HTTP basic authentication based on user info of URI.
- BasicAuthWire(Wire) - Constructor for class com.jcabi.http.wire.BasicAuthWire
-
Public ctor.
- binary() - Method in interface com.jcabi.http.mock.MkQuery
-
HTTP request body as byte array.
- binary() - Method in class com.jcabi.http.request.DefaultResponse
- binary() - Method in interface com.jcabi.http.Response
-
Raw body as a an array of bytes.
- body() - Method in interface com.jcabi.http.mock.MkAnswer
-
HTTP response body.
- body() - Method in class com.jcabi.http.mock.MkAnswer.Simple
- body() - Method in interface com.jcabi.http.mock.MkQuery
-
HTTP request body as String.
- body() - Method in class com.jcabi.http.request.ApacheRequest
- body() - Method in class com.jcabi.http.request.BaseRequest
- body() - Method in interface com.jcabi.http.Request
-
Get request body.
- body() - Method in class com.jcabi.http.request.DefaultResponse
- body() - Method in class com.jcabi.http.request.FakeRequest
- body() - Method in class com.jcabi.http.request.JdkRequest
- body() - Method in interface com.jcabi.http.Response
-
Get body as a string, assuming it's
UTF-8
(if there is something else that can't be translated into a UTF-8 string a runtime exception will be thrown). - body() - Method in class com.jcabi.http.response.JsoupResponse
- bodyBytes() - Method in interface com.jcabi.http.mock.MkAnswer
-
HTTP response body as bytes.
- bodyBytes() - Method in class com.jcabi.http.mock.MkAnswer.Simple
- Boundary - Class in com.jcabi.http.request
-
Boundary for content-type multipart/form-data.
- Boundary() - Constructor for class com.jcabi.http.request.Boundary
-
Constructor with new random number generation.
- Boundary(Random) - Constructor for class com.jcabi.http.request.Boundary
-
Ctor.
C
- CachingWire - Class in com.jcabi.http.wire
-
Wire that caches GET requests.
- CachingWire(Wire) - Constructor for class com.jcabi.http.wire.CachingWire
-
Public ctor.
- CachingWire(Wire, LoadingCache<Callable<Response>, Response>) - Constructor for class com.jcabi.http.wire.CachingWire
-
Public ctor.
- CachingWire(Wire, String) - Constructor for class com.jcabi.http.wire.CachingWire
-
Public ctor.
- CachingWire(Wire, String, LoadingCache<Callable<Response>, Response>) - Constructor for class com.jcabi.http.wire.CachingWire
-
Public ctor.
- close() - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- com.jcabi.http - package com.jcabi.http
-
RESTful client, for tests (but not only).
- com.jcabi.http.mock - package com.jcabi.http.mock
-
Mock of Servlet Container.
- com.jcabi.http.request - package com.jcabi.http.request
-
Requests.
- com.jcabi.http.response - package com.jcabi.http.response
-
Responses.
- com.jcabi.http.wire - package com.jcabi.http.wire
-
Wires.
- cookie(String) - Method in class com.jcabi.http.response.RestResponse
-
Get one cookie by name.
- CookieOptimizingWire - Class in com.jcabi.http.wire
-
Wire that compresses cookies before sending.
- CookieOptimizingWire(Wire) - Constructor for class com.jcabi.http.wire.CookieOptimizingWire
-
Public ctor.
D
- DefaultResponse - Class in com.jcabi.http.request
-
Default implementation of
Response
. - DefaultResponse(Request, int, String, Array<Map.Entry<String, String>>, byte[]) - Constructor for class com.jcabi.http.request.DefaultResponse
-
Public ctor.
- DELETE - Static variable in interface com.jcabi.http.Request
-
DELETE method name.
- describeTo(Description) - Method in class com.jcabi.http.mock.MkQueryUriMatcher
E
- ETagCachingWire - Class in com.jcabi.http.wire
-
Wire that caches requests with ETags.
- ETagCachingWire(Wire) - Constructor for class com.jcabi.http.wire.ETagCachingWire
-
Public ctor.
F
- FakeRequest - Class in com.jcabi.http.request
-
Implementation of
Request
that always returns the same response, specified in the constructor. - FakeRequest() - Constructor for class com.jcabi.http.request.FakeRequest
-
Public ctor.
- FakeRequest(int, String, Collection<Map.Entry<String, String>>, byte[]) - Constructor for class com.jcabi.http.request.FakeRequest
-
Public ctor.
- FcWire - Class in com.jcabi.http.wire
-
Wire that caches GET requests.
- FcWire(Wire) - Constructor for class com.jcabi.http.wire.FcWire
-
Public ctor.
- FcWire(Wire, String) - Constructor for class com.jcabi.http.wire.FcWire
-
Public ctor.
- FcWire(Wire, String, FcCache) - Constructor for class com.jcabi.http.wire.FcWire
-
Public ctor.
- FcWire(Wire, String, String) - Constructor for class com.jcabi.http.wire.FcWire
-
Public ctor.
- fetch() - Method in class com.jcabi.http.request.ApacheRequest
- fetch() - Method in class com.jcabi.http.request.BaseRequest
- fetch() - Method in class com.jcabi.http.request.FakeRequest
- fetch() - Method in interface com.jcabi.http.Request
-
Execute it with a specified HTTP method.
- fetch() - Method in class com.jcabi.http.request.JdkRequest
- fetch(InputStream) - Method in class com.jcabi.http.request.ApacheRequest
- fetch(InputStream) - Method in class com.jcabi.http.request.BaseRequest
- fetch(InputStream) - Method in class com.jcabi.http.request.FakeRequest
- fetch(InputStream) - Method in interface com.jcabi.http.Request
-
Execute this request using the content provided by the
InputStream
being passed as the request body. - fetch(InputStream) - Method in class com.jcabi.http.request.JdkRequest
- follow() - Method in class com.jcabi.http.response.RestResponse
-
Follow LOCATION header.
- follow(String) - Method in class com.jcabi.http.response.WebLinkingResponse
-
Follow link by REL.
- formParam(String, Object) - Method in interface com.jcabi.http.RequestBody
-
Add form param.
- formParams(Map<String, String>) - Method in interface com.jcabi.http.RequestBody
-
Add form params.
G
- get() - Method in interface com.jcabi.http.RequestBody
-
Get text content.
- get() - Method in interface com.jcabi.http.RequestURI
-
Get URI.
- GET - Static variable in interface com.jcabi.http.Request
-
GET method name.
- getKey() - Method in class com.jcabi.http.ImmutableHeader
- getValue() - Method in class com.jcabi.http.ImmutableHeader
H
- hasBody(Matcher<String>) - Static method in class com.jcabi.http.mock.MkAnswerMatchers
-
Matches the value of the MkAnswer's body against the given matcher.
- hasBody(Matcher<String>) - Static method in class com.jcabi.http.mock.MkQueryMatchers
-
Matches the value of the MkQuery's body against the given matcher.
- hasBodyBytes(Matcher<byte[]>) - Static method in class com.jcabi.http.mock.MkAnswerMatchers
-
Matches the value of the MkAnswer's body bytes against the given matcher.
- hasHeader(String, Matcher<Iterable<? extends String>>) - Static method in class com.jcabi.http.mock.MkAnswerMatchers
-
Matches the content of the MkAnswer's header against the given matcher.
- hasHeader(String, Matcher<Iterable<? extends String>>) - Static method in class com.jcabi.http.mock.MkQueryMatchers
-
Matches the content of the MkQuery's header against the given matcher.
- hasPath(Matcher<String>) - Static method in class com.jcabi.http.mock.MkQueryMatchers
-
Matches the path of the MkQuery.
- hasQuery(Matcher<String>) - Static method in class com.jcabi.http.mock.MkQueryMatchers
-
Matches the query of the MkQuery.
- HEAD - Static variable in interface com.jcabi.http.Request
-
HEAD method name.
- header(String, Object) - Method in class com.jcabi.http.request.ApacheRequest
- header(String, Object) - Method in class com.jcabi.http.request.BaseRequest
- header(String, Object) - Method in class com.jcabi.http.request.FakeRequest
- header(String, Object) - Method in interface com.jcabi.http.Request
-
Set request header.
- header(String, Object) - Method in class com.jcabi.http.request.JdkRequest
- headers() - Method in interface com.jcabi.http.mock.MkAnswer
-
HTTP response headers.
- headers() - Method in class com.jcabi.http.mock.MkAnswer.Simple
- headers() - Method in interface com.jcabi.http.mock.MkQuery
-
Headers.
- headers() - Method in class com.jcabi.http.request.DefaultResponse
- headers() - Method in interface com.jcabi.http.Response
-
Get a collection of all headers.
- home() - Method in interface com.jcabi.http.mock.MkContainer
-
Get its home.
- home() - Method in class com.jcabi.http.mock.MkGrizzlyContainer
I
- ImmutableHeader - Class in com.jcabi.http
-
Immutable HTTP header.
- ImmutableHeader(String, String) - Constructor for class com.jcabi.http.ImmutableHeader
-
Public ctor.
- invalidate() - Static method in class com.jcabi.http.wire.CachingWire
-
Invalidate the entire cache.
J
- JacksonResponse - Class in com.jcabi.http.response
-
A JSON response provided by the Jackson Project.
- JacksonResponse(Response) - Constructor for class com.jcabi.http.response.JacksonResponse
-
Ctor.
- JacksonResponse.JsonReader - Class in com.jcabi.http.response
-
A tree representation views of JSON documents.
- JdkRequest - Class in com.jcabi.http.request
-
Implementation of
Request
, based on JDK. - JdkRequest(String) - Constructor for class com.jcabi.http.request.JdkRequest
-
Public ctor.
- JdkRequest(URI) - Constructor for class com.jcabi.http.request.JdkRequest
-
Public ctor.
- JdkRequest(URL) - Constructor for class com.jcabi.http.request.JdkRequest
-
Public ctor.
- json() - Method in class com.jcabi.http.response.JacksonResponse
-
Read the body as JSON.
- json() - Method in class com.jcabi.http.response.JsonResponse
-
Read body as JSON.
- JsonReader(byte[]) - Constructor for class com.jcabi.http.response.JacksonResponse.JsonReader
-
Public constructor.
- JsonResponse - Class in com.jcabi.http.response
-
JSON response.
- JsonResponse(Response) - Constructor for class com.jcabi.http.response.JsonResponse
-
Public ctor.
- JsoupResponse - Class in com.jcabi.http.response
-
Jsoup response.
- JsoupResponse(Response) - Constructor for class com.jcabi.http.response.JsoupResponse
-
Public ctor.
- jump(URI) - Method in class com.jcabi.http.response.RestResponse
-
Jump to a new location.
L
- LastModifiedCachingWire - Class in com.jcabi.http.wire
-
Wire that caches requests based on Last-Modified and If-Modified-Since headers.
- LastModifiedCachingWire(Wire) - Constructor for class com.jcabi.http.wire.LastModifiedCachingWire
-
Public ctor.
- links() - Method in class com.jcabi.http.response.WebLinkingResponse
-
Get all links provided.
M
- matchesSafely(MkQuery, Description) - Method in class com.jcabi.http.mock.MkQueryUriMatcher
- method() - Method in interface com.jcabi.http.mock.MkQuery
-
HTTP method.
- method(String) - Method in class com.jcabi.http.request.ApacheRequest
- method(String) - Method in class com.jcabi.http.request.BaseRequest
- method(String) - Method in class com.jcabi.http.request.FakeRequest
- method(String) - Method in class com.jcabi.http.request.JdkRequest
- method(String) - Method in interface com.jcabi.http.Request
-
Use this method.
- MkAnswer - Interface in com.jcabi.http.mock
-
Mock response.
- MkAnswer.Simple - Class in com.jcabi.http.mock
-
Simple implementation.
- MkAnswerMatchers - Class in com.jcabi.http.mock
-
Convenient set of matchers for
MkAnswer
. - MkContainer - Interface in com.jcabi.http.mock
-
Mock version of Java Servlet container.
- MkGrizzlyContainer - Class in com.jcabi.http.mock
-
Implementation of
MkContainer
based on Grizzly Server. - MkGrizzlyContainer() - Constructor for class com.jcabi.http.mock.MkGrizzlyContainer
- MkQuery - Interface in com.jcabi.http.mock
-
Mock HTTP query/request.
- MkQueryMatchers - Class in com.jcabi.http.mock
-
Convenient set of matchers for
MkQuery
. - MkQueryUriMatcher - Class in com.jcabi.http.mock
-
Matcher for checking
MkQuery.uri()
contents. - multipartBody() - Method in class com.jcabi.http.request.ApacheRequest
- multipartBody() - Method in class com.jcabi.http.request.BaseRequest
- multipartBody() - Method in class com.jcabi.http.request.FakeRequest
- multipartBody() - Method in class com.jcabi.http.request.JdkRequest
- multipartBody() - Method in interface com.jcabi.http.Request
-
Get multipart form (multipart/form-data) body.
- MultipartBodyBuilder - Class in com.jcabi.http.request
-
Byte builder for multipart body.
- MultipartBodyBuilder() - Constructor for class com.jcabi.http.request.MultipartBodyBuilder
-
Ctor.
- MultipartBodyBuilder(byte[]) - Constructor for class com.jcabi.http.request.MultipartBodyBuilder
-
Ctor.
N
- next(MkAnswer) - Method in interface com.jcabi.http.mock.MkContainer
-
Give this answer on the next request.
- next(MkAnswer) - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- next(MkAnswer, Matcher<MkQuery>) - Method in interface com.jcabi.http.mock.MkContainer
-
Give this answer on the next request if the matcher condition is satisfied.
- next(MkAnswer, Matcher<MkQuery>) - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- next(MkAnswer, Matcher<MkQuery>, int) - Method in interface com.jcabi.http.mock.MkContainer
-
Give this answer on the next request(s) if the matcher condition is satisfied up to a certain number of requests.
- next(MkAnswer, Matcher<MkQuery>, int) - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- normalize(String) - Static method in class com.jcabi.http.ImmutableHeader
-
Normalize key.
O
- OneMinuteWire - Class in com.jcabi.http.wire
-
Wire that throws an
IOException
if a request takes longer than a minute. - OneMinuteWire(Wire) - Constructor for class com.jcabi.http.wire.OneMinuteWire
-
Public ctor.
- OPTIONS - Static variable in interface com.jcabi.http.Request
-
OPTIONS method name.
P
- PATCH - Static variable in interface com.jcabi.http.Request
-
PATCH method name.
- path(String) - Method in interface com.jcabi.http.RequestURI
-
Add URI path.
- port(int) - Method in interface com.jcabi.http.RequestURI
-
Set port number.
- POST - Static variable in interface com.jcabi.http.Request
-
POST method name.
- Printable(byte[]) - Constructor for class com.jcabi.http.RequestBody.Printable
-
Ctor.
- PUT - Static variable in interface com.jcabi.http.Request
-
PUT method name.
Q
- queries() - Method in interface com.jcabi.http.mock.MkContainer
-
How many queries we have left.
- queries() - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- queryParam(String, Object) - Method in interface com.jcabi.http.RequestURI
-
Add query param.
- queryParams(Map<String, String>) - Method in interface com.jcabi.http.RequestURI
-
Add query params.
R
- read() - Method in class com.jcabi.http.response.JacksonResponse.JsonReader
-
Returns an immutable JSON node.
- readArray() - Method in class com.jcabi.http.response.JacksonResponse.JsonReader
-
Returns a mutable JSON array node, if the parsed JSON is a valid array.
- readObject() - Method in class com.jcabi.http.response.JacksonResponse.JsonReader
-
Returns a mutable JSON object node, if the parsed JSON is a valid object.
- reason() - Method in class com.jcabi.http.request.DefaultResponse
- reason() - Method in interface com.jcabi.http.Response
-
Get status line reason phrase.
- registerNs(String, String) - Method in class com.jcabi.http.response.XmlResponse
-
Register this new namespace.
- rel(String) - Method in class com.jcabi.http.response.XmlResponse
-
Follow XML link.
- Request - Interface in com.jcabi.http
-
RESTful request.
- RequestBody - Interface in com.jcabi.http
-
Request body.
- RequestBody.Printable - Class in com.jcabi.http
-
Printer of byte array.
- RequestURI - Interface in com.jcabi.http
-
Request URI.
- reset(String) - Method in class com.jcabi.http.request.ApacheRequest
- reset(String) - Method in class com.jcabi.http.request.BaseRequest
- reset(String) - Method in class com.jcabi.http.request.FakeRequest
- reset(String) - Method in class com.jcabi.http.request.JdkRequest
- reset(String) - Method in interface com.jcabi.http.Request
-
Remove all headers with this name.
- Response - Interface in com.jcabi.http
-
RESTful response returned by
Request.fetch()
. - RestResponse - Class in com.jcabi.http.response
-
REST response.
- RestResponse(Response) - Constructor for class com.jcabi.http.response.RestResponse
-
Public ctor.
- RetryWire - Class in com.jcabi.http.wire
-
Wire that retries a few times before giving up and throwing exception.
- RetryWire(Wire) - Constructor for class com.jcabi.http.wire.RetryWire
-
Public ctor.
S
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.AbstractHeaderBasedCachingWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.AutoRedirectingWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.BasicAuthWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.CachingWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.CookieOptimizingWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.FcWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.OneMinuteWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.RetryWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in interface com.jcabi.http.Wire
-
Send request and return response.
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.TrustedWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.UserAgentWire
- send(Request, String, String, Collection<Map.Entry<String, String>>, InputStream, int, int) - Method in class com.jcabi.http.wire.VerboseWire
- set(byte[]) - Method in interface com.jcabi.http.RequestBody
-
Set byte array content.
- set(JsonStructure) - Method in interface com.jcabi.http.RequestBody
-
Set JSON content.
- set(String) - Method in interface com.jcabi.http.RequestBody
-
Set text content.
- set(URI) - Method in interface com.jcabi.http.RequestURI
-
Set URI.
- setValue(String) - Method in class com.jcabi.http.ImmutableHeader
- Simple(int) - Constructor for class com.jcabi.http.mock.MkAnswer.Simple
-
Public ctor (with empty HTTP body).
- Simple(int, Iterable<Map.Entry<String, String>>, byte[]) - Constructor for class com.jcabi.http.mock.MkAnswer.Simple
-
Public ctor.
- Simple(int, String) - Constructor for class com.jcabi.http.mock.MkAnswer.Simple
-
Public ctor.
- Simple(String) - Constructor for class com.jcabi.http.mock.MkAnswer.Simple
-
Public ctor.
- start() - Method in interface com.jcabi.http.mock.MkContainer
-
Start it on the first available TCP port.
- start() - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- start(int) - Method in interface com.jcabi.http.mock.MkContainer
-
Start it on a provided port.
- start(int) - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- status() - Method in class com.jcabi.http.mock.MkAnswer.Simple
- status() - Method in interface com.jcabi.http.mock.MkAnswer
-
HTTP response status.
- status() - Method in class com.jcabi.http.request.DefaultResponse
- status() - Method in interface com.jcabi.http.Response
-
Get status of the response as a positive integer number.
- stop() - Method in interface com.jcabi.http.mock.MkContainer
-
Stop container.
- stop() - Method in class com.jcabi.http.mock.MkGrizzlyContainer
T
- take() - Method in interface com.jcabi.http.mock.MkContainer
-
Get the oldest request received (
NoSuchElementException
if no more elements in the list). - take() - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- take(Matcher<MkAnswer>) - Method in interface com.jcabi.http.mock.MkContainer
-
Get the oldest request received subject to the matching condition.
- take(Matcher<MkAnswer>) - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- takeAll(Matcher<MkAnswer>) - Method in interface com.jcabi.http.mock.MkContainer
-
Get the all requests received satisfying the given matcher.
- takeAll(Matcher<MkAnswer>) - Method in class com.jcabi.http.mock.MkGrizzlyContainer
- through(Wire) - Method in class com.jcabi.http.request.ApacheRequest
- through(Wire) - Method in class com.jcabi.http.request.BaseRequest
- through(Wire) - Method in class com.jcabi.http.request.FakeRequest
- through(Wire) - Method in class com.jcabi.http.request.JdkRequest
- through(Wire) - Method in interface com.jcabi.http.Request
-
Send it through a decorating
Wire
. - through(Class<T>, Object...) - Method in class com.jcabi.http.request.ApacheRequest
- through(Class<T>, Object...) - Method in class com.jcabi.http.request.BaseRequest
- through(Class<T>, Object...) - Method in class com.jcabi.http.request.FakeRequest
- through(Class<T>, Object...) - Method in class com.jcabi.http.request.JdkRequest
- through(Class<T>, Object...) - Method in interface com.jcabi.http.Request
-
Send it through a decorating
Wire
. - timeout(int, int) - Method in class com.jcabi.http.request.ApacheRequest
- timeout(int, int) - Method in class com.jcabi.http.request.BaseRequest
- timeout(int, int) - Method in class com.jcabi.http.request.FakeRequest
- timeout(int, int) - Method in class com.jcabi.http.request.JdkRequest
- timeout(int, int) - Method in interface com.jcabi.http.Request
-
Use this timeout values.
- toString() - Method in class com.jcabi.http.mock.MkAnswer.Simple
- toString() - Method in class com.jcabi.http.request.BaseRequest
- toString() - Method in class com.jcabi.http.request.DefaultResponse
- toString() - Method in class com.jcabi.http.request.FakeRequest
- toString() - Method in class com.jcabi.http.RequestBody.Printable
- TrustedWire - Class in com.jcabi.http.wire
-
Wire that ignores SSL PKIX verifications.
- TrustedWire(Wire) - Constructor for class com.jcabi.http.wire.TrustedWire
-
Public ctor.
U
- uri() - Method in interface com.jcabi.http.mock.MkQuery
-
URI.
- uri() - Method in class com.jcabi.http.request.ApacheRequest
- uri() - Method in class com.jcabi.http.request.BaseRequest
- uri() - Method in class com.jcabi.http.request.FakeRequest
- uri() - Method in class com.jcabi.http.request.JdkRequest
- uri() - Method in interface com.jcabi.http.Request
-
Get destination URI.
- uri() - Method in interface com.jcabi.http.response.WebLinkingResponse.Link
-
Its URI.
- UserAgentWire - Class in com.jcabi.http.wire
-
Wire with default user agent.
- UserAgentWire(Wire) - Constructor for class com.jcabi.http.wire.UserAgentWire
-
Public ctor.
- userInfo(String) - Method in interface com.jcabi.http.RequestURI
-
Set user info.
V
- value() - Method in class com.jcabi.http.request.Boundary
-
Generates random boundary with random size from 30 to 40.
- VerboseWire - Class in com.jcabi.http.wire
-
Verbose wire.
- VerboseWire(Wire) - Constructor for class com.jcabi.http.wire.VerboseWire
-
Public ctor.
W
- WebLinkingResponse - Class in com.jcabi.http.response
-
Web Linking response.
- WebLinkingResponse(Response) - Constructor for class com.jcabi.http.response.WebLinkingResponse
-
Public ctor.
- WebLinkingResponse.Link - Interface in com.jcabi.http.response
-
Single link.
- Wire - Interface in com.jcabi.http
-
Wire.
- withBody(byte[]) - Method in class com.jcabi.http.mock.MkAnswer.Simple
-
Make a copy of this answer, with another body.
- withBody(byte[]) - Method in class com.jcabi.http.request.FakeRequest
-
Make a similar request, with the provided body.
- withBody(String) - Method in class com.jcabi.http.mock.MkAnswer.Simple
-
Make a copy of this answer, with another body.
- withBody(String) - Method in class com.jcabi.http.request.FakeRequest
-
Make a similar request, with the provided body.
- withHeader(String, String) - Method in class com.jcabi.http.mock.MkAnswer.Simple
-
Make a copy of this answer, with an extra header.
- withHeader(String, String) - Method in class com.jcabi.http.request.FakeRequest
-
Make a similar request, with the provided HTTP header.
- withReason(String) - Method in class com.jcabi.http.request.FakeRequest
-
Make a similar request, with the provided reason line.
- withStatus(int) - Method in class com.jcabi.http.mock.MkAnswer.Simple
-
Make a copy of this answer, with another status code.
- withStatus(int) - Method in class com.jcabi.http.request.FakeRequest
-
Make a similar request, with the provided status code.
X
- xml() - Method in class com.jcabi.http.response.XmlResponse
-
Get XML body.
- XmlResponse - Class in com.jcabi.http.response
-
XML response.
- XmlResponse(Response) - Constructor for class com.jcabi.http.response.XmlResponse
-
Public ctor.
All Classes All Packages