public class DefaultRequestMapper extends Object implements RequestMapper
DefaultRequestHandlerChain instances in the order they were provided.
Suitable chains are identified by calling canHandle on the attached RequestHandler.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultRequestMapper.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DefaultRequestMapper.Builder |
builder() |
Optional<RequestHandlerChain> |
getRequestHandlerChain(HandlerInput input)
Finds a
RequestHandlerChain containing a request handler that is suitable for the incoming request. |
public static DefaultRequestMapper.Builder builder()
public Optional<RequestHandlerChain> getRequestHandlerChain(HandlerInput input)
RequestMapperRequestHandlerChain containing a request handler that is suitable for the incoming request.
An Optional empty is returned if no such handler can be located.getRequestHandlerChain in interface RequestMapperinput - handler input containing the RequestEnvelope, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.Optional containing the request handler chain if one is located, or empty if not.Copyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.