Class TriggerRequests

java.lang.Object
org.chenile.trigger.TriggerRequests

public class TriggerRequests extends Object
Validation and header rules shared by every TriggerService implementation. Stateless: each implementation holds its own instance.
  • Field Details

  • Constructor Details

    • TriggerRequests

      public TriggerRequests()
  • Method Details

    • validate

      public void validate(TriggerInput input)
    • headers

      public Map<String,String> headers(TriggerInput input)
      The headers the event is raised with: the caller's x- context, then the input's headers, with the tenant reconciled against the caller and the source set. Any incoming trigger id is dropped so that a caller cannot choose or spoof the accepted trigger.
    • source

      public String source(TriggerInput input)
    • tenant

      public String tenant(Map<String,String> headers)
    • require

      private void require(boolean condition, String message)