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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
getIntent
public String getIntent()
Returns the name of the intent.- Returns:
- The name of the intent, never
null.
-
getContext
public Optional<IntentContext<?>> getContext()
-
getTarget
public Optional<IntentTarget> getTarget()
Returns anOptionaleventually containing Intent request's target.- Returns:
- An
Optionaleventually containing request's target, nevernull
-
intent
public static IntentRequest.Builder intent(String name)
Creates anIntentRequest.Builderfor specified Intent name.- Parameters:
name- Intent name, must not benull- Returns:
- An
IntentRequest.Builder, nevernull
-
-