| Package | Description |
|---|---|
| com.artipie.http |
Artipie HTTP layer.
|
| com.artipie.http.async | |
| com.artipie.http.auth |
Artipie authentication and authorization mecahnism.
|
| com.artipie.http.group |
Group repositories HTTP API.
|
| com.artipie.http.hm |
Hamcrest matchers.
|
| com.artipie.http.rs |
Responses.
|
| com.artipie.http.rs.common |
Common responses.
|
| com.artipie.http.rt |
Slice routing.
|
| com.artipie.http.slice |
Slice objects.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Response.Wrap
Abstract decorator for Response.
|
| Modifier and Type | Field and Description |
|---|---|
static Response |
Response.EMPTY
Deprecated.
Use
StandardRs.EMPTY. |
| Modifier and Type | Method and Description |
|---|---|
Response |
Slice.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Respond to a http request.
|
Response |
Slice.Wrap.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Constructor and Description |
|---|
Wrap(Response response)
Ctor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncResponse
Async response from
CompletionStage. |
| Modifier and Type | Method and Description |
|---|---|
Response |
AsyncSlice.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Constructor and Description |
|---|
AsyncResponse(CompletionStage<? extends Response> future)
Response from
CompletionStage. |
AsyncResponse(io.reactivex.Single<? extends Response> single)
Response from
Single. |
| Modifier and Type | Method and Description |
|---|---|
Response |
SliceAuth.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Deprecated.
|
Response |
BasicAuthSlice.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Modifier and Type | Method and Description |
|---|---|
Response |
GroupSlice.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Modifier and Type | Method and Description |
|---|---|
Response |
AssertSlice.response(String lne,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> publ) |
| Modifier and Type | Method and Description |
|---|---|
void |
RsHasHeaders.describeMismatchSafely(Response item,
org.hamcrest.Description desc) |
boolean |
RsHasHeaders.matchesSafely(Response item) |
boolean |
RsHasStatus.matchesSafely(Response item) |
boolean |
RsHasBody.matchesSafely(Response item) |
| Constructor and Description |
|---|
SliceHasResponse(org.hamcrest.Matcher<? extends Response> rsp,
RequestLine line)
New response matcher for slice with request line.
|
SliceHasResponse(org.hamcrest.Matcher<? extends Response> rsp,
RequestLine line,
Headers headers,
com.artipie.asto.Content body)
New response matcher for slice with request line, headers and body.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CachedResponse
Response that caches origin response once it first sent and can replay it many times.
|
class |
RsFull
RsFull, response with status code, headers and body.
|
class |
RsWithBody
Response with body.
|
class |
RsWithHeaders
Response with additional headers.
|
class |
RsWithStatus
Response with status.
|
class |
StandardRs
Standard responses.
|
| Constructor and Description |
|---|
CachedResponse(Response origin)
Wraps response with stateful connection.
|
RsWithBody(Response origin,
byte[] bytes)
Decorates origin response body with byte buffer.
|
RsWithBody(Response origin,
ByteBuffer buf)
Decorates origin response body with byte buffer.
|
RsWithBody(Response origin,
CharSequence body,
Charset charset)
Decorates response with new text body.
|
RsWithBody(Response origin,
com.artipie.asto.Content body)
Decorates origin response body with content.
|
RsWithBody(Response origin,
org.reactivestreams.Publisher<ByteBuffer> body)
Response with body from publisher.
|
RsWithHeaders(Response origin,
Headers headers)
Ctor.
|
RsWithHeaders(Response origin,
Iterable<Map.Entry<String,String>> headers)
Ctor.
|
RsWithHeaders(Response origin,
Map.Entry<String,String>... headers)
Ctor.
|
RsWithHeaders(Response origin,
String name,
String value)
Ctor.
|
RsWithStatus(Response origin,
RsStatus status)
Override status code for response.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RsJson
Response with JSON document.
|
class |
RsText
Response with text.
|
| Constructor and Description |
|---|
RsJson(Response origin,
Supplier<? extends javax.json.JsonStructure> json,
Charset encoding)
Wrap response with JSON supplier with charset encoding.
|
RsText(Response origin,
CharSequence text,
Charset encoding)
Wrap existing response with text of
CharSequence and encoding Charset. |
| Modifier and Type | Method and Description |
|---|---|
Response |
SliceRoute.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Response> |
SliceRoute.Path.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Deprecated.
|
Optional<Response> |
RtPath.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Try respond.
|
Optional<Response> |
RtRulePath.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Modifier and Type | Method and Description |
|---|---|
Response |
SliceDelete.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
Response |
TrimPathSlice.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
Response |
LoggingSlice.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
Response |
SliceSimple.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
Response |
SliceUpload.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
Response |
SliceWithHeaders.response(String line,
Iterable<Map.Entry<String,String>> hdrs,
org.reactivestreams.Publisher<ByteBuffer> body) |
Response |
SliceDownload.response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body) |
| Constructor and Description |
|---|
SliceSimple(Response response)
Response.
|
Copyright © 2012–2020 jcabi.com. All rights reserved.