Modifier and Type | Method and Description |
---|---|
protected com.amazon.ask.model.services.ApiConfiguration |
CustomSkill.getApiConfiguration(RequestEnvelope requestEnvelope)
Getter for Api configuration.
|
ResponseEnvelope |
CustomSkill.invoke(RequestEnvelope requestEnvelope)
.
|
ResponseEnvelope |
CustomSkill.invoke(RequestEnvelope requestEnvelope,
Object context)
.
|
Modifier and Type | Method and Description |
---|---|
protected ResponseEnvelope |
CustomSkill.invoke(UnmarshalledRequest<RequestEnvelope> unmarshalledRequest,
Object context)
Invokes the dispatcher to handler the request envelope and construct the handler input.
|
Modifier and Type | Field and Description |
---|---|
protected RequestEnvelope |
AttributesManager.requestEnvelope
Request envelope object which encapsulates Request, Session, context and the current version.
|
Modifier and Type | Method and Description |
---|---|
AttributesManager.Builder |
AttributesManager.Builder.withRequestEnvelope(RequestEnvelope requestEnvelope)
Adds RequestEnvelope to AttributesManager.
|
Constructor and Description |
---|
AttributesManager(PersistenceAdapter persistenceAdapter,
RequestEnvelope requestEnvelope)
Constructor for AttributesManager.
|
Modifier and Type | Method and Description |
---|---|
void |
PersistenceAdapter.deleteAttributes(RequestEnvelope envelope)
Deletes attributes from persistence.
|
Optional<Map<String,Object>> |
PersistenceAdapter.getAttributes(RequestEnvelope envelope)
Retrieves attributes from persistence.
|
void |
PersistenceAdapter.saveAttributes(RequestEnvelope envelope,
Map<String,Object> attributes)
Saves attributes to persistence.
|
Modifier and Type | Method and Description |
---|---|
static Function<RequestEnvelope,String> |
PartitionKeyGenerators.deviceId()
Produces a partition key from the device ID contained in an incoming request.
|
static Function<RequestEnvelope,String> |
PartitionKeyGenerators.personId()
Produces a partition key from the
Person ID contained in an incoming request. |
static Function<RequestEnvelope,String> |
PartitionKeyGenerators.userId()
Produces a partition key from the user ID contained in an incoming request.
|
Modifier and Type | Method and Description |
---|---|
void |
DynamoDbPersistenceAdapter.deleteAttributes(RequestEnvelope envelope)
Deletes attributes from DynamoDB table.
|
Optional<Map<String,Object>> |
DynamoDbPersistenceAdapter.getAttributes(RequestEnvelope envelope)
Gets attributes from DynamoDB table.
|
void |
DynamoDbPersistenceAdapter.saveAttributes(RequestEnvelope envelope,
Map<String,Object> attributes)
Saves attributes to a DynamoDB table.
|
Modifier and Type | Method and Description |
---|---|
DynamoDbPersistenceAdapter.Builder |
DynamoDbPersistenceAdapter.Builder.withPartitionKeyGenerator(Function<RequestEnvelope,String> partitionKeyGenerator)
Optional partition key generator function used to derive partition key value from one or more
attributes of a
RequestEnvelope . |
Modifier and Type | Method and Description |
---|---|
StandardSkillBuilder |
StandardSkillBuilder.withPartitionKeyGenerator(Function<RequestEnvelope,String> partitionKeyGenerator)
Allows the user to specify a partition key generator.
|
Modifier and Type | Field and Description |
---|---|
protected RequestEnvelope |
HandlerInput.requestEnvelope
Request Envelope.
|
Modifier and Type | Method and Description |
---|---|
RequestEnvelope |
HandlerInput.getRequestEnvelope()
Returns the
RequestEnvelope of the incoming request. |
Modifier and Type | Method and Description |
---|---|
HandlerInput.Builder |
HandlerInput.Builder.withRequestEnvelope(RequestEnvelope requestEnvelope)
Adds Request Envelope to HandlerInput.
|
Constructor and Description |
---|
HandlerInput(RequestEnvelope requestEnvelope,
PersistenceAdapter persistenceAdapter,
Object context,
ServiceClientFactory serviceClientFactory,
com.fasterxml.jackson.databind.JsonNode requestEnvelopeJson,
TemplateFactory<HandlerInput,Response> templateFactory)
Constructor for HandlerInput.
|
Modifier and Type | Method and Description |
---|---|
RequestEnvelope |
RequestEnvelope.Builder.build() |
Modifier and Type | Field and Description |
---|---|
protected Function<RequestEnvelope,String> |
StandardSdkModule.Builder.partitionKeyGenerator
Partition Key Generator, the key of which is used as input for a hash function to determine storage.
|
Modifier and Type | Method and Description |
---|---|
StandardSdkModule.Builder |
StandardSdkModule.Builder.withPartitionKeyGenerator(Function<RequestEnvelope,String> partitionKeyGenerator)
Allows the user to specify a partition key generator.
|
Modifier and Type | Method and Description |
---|---|
static ViewportProfile |
ViewportUtils.getViewportProfile(RequestEnvelope requestEnvelope)
Get viewport profile which helps to determine type of device.
|
Modifier and Type | Method and Description |
---|---|
RequestEnvelope |
ServletRequest.getDeserializedRequestEnvelope() |
RequestEnvelope |
AlexaHttpRequest.getDeserializedRequestEnvelope() |
Constructor and Description |
---|
ServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
byte[] serializedRequestEnvelope,
RequestEnvelope deserializedRequestEnvelope)
Constructor to build an instance of ServletRequest.
|
Copyright © 2023. All rights reserved.