Package | Description |
---|---|
com.spotify.apollo | |
com.spotify.apollo.test.unit |
Modifier and Type | Class and Description |
---|---|
class |
Status
Lists more-or-less common status codes, taken from
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
|
static class |
Status.WithReasonPhrase |
Modifier and Type | Method and Description |
---|---|
static StatusType |
Status.createForCode(int statusCode) |
StatusType |
Response.status()
The status of the response message.
|
StatusType |
StatusType.withReasonPhrase(String reasonPhrase)
Returns a StatusType instance with the same code value as the current instance, but
using the supplied reasonPhrase.
|
StatusType |
Status.withReasonPhrase(String reasonPhrase) |
StatusType |
Status.WithReasonPhrase.withReasonPhrase(String reasonPhrase) |
Modifier and Type | Method and Description |
---|---|
static <T> Response<T> |
Response.forStatus(StatusType statusCode)
Creates a
Response with the given status code. |
static <T> Response<T> |
Response.of(StatusType statusCode,
T payload)
Creates a
Response with the given status code and a payload with type T . |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<StatusType> |
StatusTypeMatchers.belongsToFamily(StatusType.Family family)
Builds a matcher for
StatusType s belonging to a StatusType.Family . |
static org.hamcrest.Matcher<StatusType> |
StatusTypeMatchers.withCode(int code)
Builds a matcher for
StatusType s with specified status code. |
static org.hamcrest.Matcher<StatusType> |
StatusTypeMatchers.withCode(StatusType code)
|
static org.hamcrest.Matcher<StatusType> |
StatusTypeMatchers.withReasonPhrase(org.hamcrest.Matcher<String> reasonPhraseMatcher)
Builds a matcher for
StatusType s with matching reason phrase. |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<StatusType> |
StatusTypeMatchers.withCode(StatusType code)
|
Modifier and Type | Method and Description |
---|---|
static <T> org.hamcrest.Matcher<Response<T>> |
ResponseMatchers.hasStatus(org.hamcrest.Matcher<StatusType> statusMatcher)
Builds a matcher for
Response s with matching status. |
Copyright © 2016. All rights reserved.