EventHandler Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. EventHandler
- com.
public final class EventHandler
Properties of event handler.
Constructor Summary
| Constructor | Description |
|---|---|
| EventHandler() |
Creates an instance of Event |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Upstream |
auth()
Get the auth property: Upstream auth settings. |
| List<String> |
systemEvents()
Get the system |
| String |
urlTemplate()
Get the url |
| String |
userEventPattern()
Get the user |
| void |
validate()
Validates the instance. |
|
Event |
withAuth(UpstreamAuthSettings auth)
Set the auth property: Upstream auth settings. |
|
Event |
withSystemEvents(List<String> systemEvents)
Set the system |
|
Event |
withUrlTemplate(String urlTemplate)
Set the url |
|
Event |
withUserEventPattern(String userEventPattern)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
EventHandler
public EventHandler()
Creates an instance of EventHandler class.
Method Details
auth
public UpstreamAuthSettings auth()
Get the auth property: Upstream auth settings. If not set, no auth is used for upstream messages.
Returns:
systemEvents
public List<String> systemEvents()
Get the systemEvents property: Gets or sets the list of system events.
Returns:
urlTemplate
public String urlTemplate()
Get the urlTemplate property: Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in. For example, UrlTemplate can be `http://example.com/api/{hub}/{event}`. The host part can't contains parameters.
Returns:
userEventPattern
public String userEventPattern()
Get the userEventPattern property: Gets or sets the matching pattern for event names. There are 3 kinds of patterns supported: 1. "*", it matches any event name 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2" 3. A single event name, for example, "event1", it matches "event1".
Returns:
validate
public void validate()
Validates the instance.
withAuth
public EventHandler withAuth(UpstreamAuthSettings auth)
Set the auth property: Upstream auth settings. If not set, no auth is used for upstream messages.
Parameters:
Returns:
withSystemEvents
public EventHandler withSystemEvents(List<String> systemEvents)
Set the systemEvents property: Gets or sets the list of system events.
Parameters:
Returns:
withUrlTemplate
public EventHandler withUrlTemplate(String urlTemplate)
Set the urlTemplate property: Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in. For example, UrlTemplate can be `http://example.com/api/{hub}/{event}`. The host part can't contains parameters.
Parameters:
Returns:
withUserEventPattern
public EventHandler withUserEventPattern(String userEventPattern)
Set the userEventPattern property: Gets or sets the matching pattern for event names. There are 3 kinds of patterns supported: 1. "*", it matches any event name 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2" 3. A single event name, for example, "event1", it matches "event1".
Parameters:
Returns: