public class DefaultHandlerAdapter extends Object implements HandlerAdapter
HandlerAdapter implementation for RequestHandler implementations.| Constructor and Description |
|---|
DefaultHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Optional<com.amazon.ask.model.Response> |
execute(HandlerInput input,
Object handler)
Executes the request handler with the supplied input.
|
boolean |
supports(Object handler)
Returns true if the adapter supports the type of handler.
|
public boolean supports(Object handler)
HandlerAdaptersupports in interface HandlerAdapterhandler - request handlerpublic Optional<com.amazon.ask.model.Response> execute(HandlerInput input, Object handler)
HandlerAdapterexecute in interface HandlerAdapterinput - handler input containing the RequestEnvelope, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.handler - request handlerResponseCopyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.