| Package | Description |
|---|---|
| com.artipie.http |
Artipie HTTP layer.
|
| com.artipie.http.hm |
Hamcrest matchers.
|
| com.artipie.http.rs |
Responses.
|
| com.artipie.http.rs.common |
Common responses.
|
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
Connection.accept(RsStatus status,
Headers headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Respond on connection.
|
default CompletionStage<Void> |
Connection.accept(RsStatus status,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Deprecated.
|
| Constructor and Description |
|---|
ResponseMatcher(RsStatus status,
byte[] body)
Ctor.
|
ResponseMatcher(RsStatus status,
byte[] body,
Map.Entry<String,String>... headers)
Ctor.
|
ResponseMatcher(RsStatus status,
Iterable<? extends Map.Entry<String,String>> headers)
Ctor.
|
ResponseMatcher(RsStatus status,
Iterable<? extends Map.Entry<String,String>> headers,
byte[] body)
Ctor.
|
ResponseMatcher(RsStatus status,
Map.Entry<String,String>... headers)
Ctor.
|
ResponseMatcher(RsStatus status,
org.hamcrest.Matcher<? super Map.Entry<String,String>>... headers)
Ctor.
|
ResponseMatcher(RsStatus status,
String body,
Charset charset)
Ctor.
|
RsHasStatus(RsStatus status)
Ctor.
|
| Constructor and Description |
|---|
RsHasStatus(org.hamcrest.Matcher<RsStatus> status)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
RsStatus |
RsStatus.ByCode.find()
Searches RsStatus by code.
|
static RsStatus |
RsStatus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RsStatus[] |
RsStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
RsFull(RsStatus status,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Ctor.
|
RsWithStatus(Response origin,
RsStatus status)
Override status code for response.
|
RsWithStatus(RsStatus status)
New response with status.
|
| Constructor and Description |
|---|
RsJson(RsStatus status,
Supplier<? extends javax.json.JsonStructure> json,
Charset encoding)
JSON response with charset encoding and status code.
|
RsText(RsStatus status,
CharSequence text,
Charset encoding)
New text response with
CharSequence and encoding Charset. |
Copyright © 2012–2020 jcabi.com. All rights reserved.