Modifier and Type | Method and Description |
---|---|
Request |
Request.clearHeaders()
Creates a new
Request based on this, but with no header information. |
static Request |
Request.forUri(String uri)
Creates a
Request for the given uri. |
static Request |
Request.forUri(String uri,
String method)
Creates a
Request for the given uri and method. |
Request |
RequestContext.request()
Get the incoming request message.
|
Request |
Request.withHeader(String name,
String value)
Creates a new
Request based on this, but with an additional header. |
Request |
Request.withHeaders(Map<String,String> additionalHeaders)
Creates a new
Request based on this, but with additional headers. |
Request |
Request.withPayload(okio.ByteString payload)
Creates a new
Request based on this, but with a different payload. |
Request |
Request.withService(String service)
Creates a new
Request based on this, but with a different calling service. |
default Request |
Request.withTtl(Duration ttl)
Creates a new
Request based on this, but with a different ttl. |
Request |
Request.withUri(String uri)
Creates a new
Request based on this, but with a different URI. |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Response<okio.ByteString>> |
Client.send(Request request)
Send a Request and get an asynchronous Response as a CompletionStage.
|
Serializer.Payload |
Serializer.serialize(Request request,
Object t)
Deprecated.
Produce a
Serializer.Payload from the incoming request Request
and the endpoint returned object. |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Response<okio.ByteString>> |
IncomingRequestAwareClient.send(Request request,
Optional<Request> incoming)
Send a Request with an optional originating Request and get an asynchronous Response as a
CompletionStage.
|
default Client |
IncomingRequestAwareClient.wrapRequest(Request request)
Wraps a request and returns a
Client where all calles use the wrapped request for the
incoming argument. |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Response<okio.ByteString>> |
IncomingRequestAwareClient.send(Request request,
Optional<Request> incoming)
Send a Request with an optional originating Request and get an asynchronous Response as a
CompletionStage.
|
Modifier and Type | Method and Description |
---|---|
void |
OutgoingCallsGatherer.gatherOutgoingCall(String toService,
Request request) |
Collection<String> |
ApplicationOrMetaRouter.getMethodsForValidRules(Request message) |
Optional<RuleMatch<E>> |
ApplicationOrMetaRouter.match(Request message) |
CompletionStage<Response<okio.ByteString>> |
OutgoingCallsGatheringClient.send(Request request,
Optional<Request> incoming) |
Serializer.Payload |
JsonMetaSerializer.serialize(Request message,
Object o) |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Response<okio.ByteString>> |
OutgoingCallsGatheringClient.send(Request request,
Optional<Request> incoming) |
Modifier and Type | Method and Description |
---|---|
Request |
OngoingRequest.request()
Returns the
Request . |
Request |
ForwardingOngoingRequest.request() |
Modifier and Type | Method and Description |
---|---|
static RequestContext |
RequestContexts.create(Request request,
Client client,
Map<String,String> pathArgs) |
static RequestContext |
RequestContexts.create(Request request,
Client client,
Map<String,String> pathArgs,
long arrivalTimeNanos) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
RuleRouter.getMethodsForValidRules(Request message) |
Collection<String> |
ApplicationRouter.getMethodsForValidRules(Request message)
Returns a collection of valid methods (such as GET and POST) for the URI of the provided
request.
|
Optional<RuleMatch<T>> |
RuleRouter.match(Request message) |
Optional<RuleMatch<T>> |
ApplicationRouter.match(Request message)
Match a request to a configured entity.
|
Modifier and Type | Method and Description |
---|---|
Serializer.Payload |
StringSerializer.serialize(Request request,
Object t)
Deprecated.
|
Serializer.Payload |
RawSerializer.serialize(Request request,
Object t)
Deprecated.
|
Serializer.Payload |
JsonSerializer.serialize(Request request,
Object t)
Deprecated.
|
Serializer.Payload |
AutoSerializer.serialize(Request message,
Object o)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract Request |
StubClient.RequestResponsePair.request() |
Request |
FakeOngoingRequest.request() |
Modifier and Type | Method and Description |
---|---|
List<Request> |
StubClient.sentRequests()
Returns all the requests sent to this stub client.
|
Modifier and Type | Method and Description |
---|---|
static StubClient.RequestResponsePair |
StubClient.RequestResponsePair.create(Request request,
Response<okio.ByteString> response) |
CompletionStage<Response<okio.ByteString>> |
ServiceHelper.request(Request request)
Make a call to the running application and return a
CompletionStage of the response. |
CompletionStage<Response<okio.ByteString>> |
StubClient.send(Request request) |
Modifier and Type | Method and Description |
---|---|
void |
StubClient.StubbedResponseBuilder.to(org.hamcrest.Matcher<Request> requestMatcher)
Map the previously configured response or response source to any messages matching the
supplied
Matcher . |
Constructor and Description |
---|
FakeOngoingRequest(Request request)
Create a new mock service request holding an Apollo
Request . |
Modifier and Type | Method and Description |
---|---|
ResponseWithDelay |
ResponseSource.create(Request request) |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<Request> |
RequestMatchers.method(String method) |
static org.hamcrest.Matcher<Request> |
RequestMatchers.uri(org.hamcrest.Matcher<String> uriMatcher) |
Copyright © 2016. All rights reserved.