Package com.tick42.glue.desktop.intents
Class IntentRequest
java.lang.Object
com.tick42.glue.desktop.intents.IntentRequest
public final class IntentRequest extends Object
Represents a request to raise an intent.
- Since:
- 1.4.1
- See Also:
IntentRequest.Builder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntentRequest.BuilderBuilder forIntentRequests. -
Method Summary
Modifier and Type Method Description Optional<IntentContext<?>>getContext()StringgetIntent()Returns the name of the intent.Map<String,Object>getOptions()Optional<IntentTarget>getTarget()Returns anOptionaleventually containing Intent request's target.static IntentRequest.Builderintent(String name)Creates anIntentRequest.Builderfor specified Intent name.StringtoString()ReturnsStringrepresentation of this request.
-
Method Details
-
getIntent
Returns the name of the intent.- Returns:
- The name of the intent, never
null.
-
getContext
-
getTarget
Returns anOptionaleventually containing Intent request's target.- Returns:
- An
Optionaleventually containing request's target, nevernull
-
getOptions
-
toString
ReturnsStringrepresentation of this request. -
intent
Creates anIntentRequest.Builderfor specified Intent name.- Parameters:
name- Intent name, must not benull- Returns:
- An
IntentRequest.Builder, nevernull
-