Class Match

java.lang.Object
io.vertx.ext.dropwizard.Match

public class Match extends Object
A match for a value.
Author:
Julien Viet
  • Field Details

  • Constructor Details

    • Match

      public Match()
      Default constructor
    • Match

      public Match(Match other)
      Copy constructor
      Parameters:
      other - The other Match to copy when creating this
    • Match

      public Match(JsonObject json)
      Create an instance from a JsonObject
      Parameters:
      json - the JsonObject to create it from
  • Method Details

    • getValue

      public String getValue()
      Returns:
      the matched value
    • setValue

      public Match setValue(String value)
      Set the matched value.
      Parameters:
      value - the value to match
      Returns:
      a reference to this, so the API can be used fluently
    • getType

      public MatchType getType()
      Returns:
      the matcher type
    • setType

      public Match setType(MatchType type)
      Set the type of matching to apply.
      Parameters:
      type - the matcher type
      Returns:
      a reference to this, so the API can be used fluently
    • getAlias

      public String getAlias()
      Returns:
      the matcher alias
    • setAlias

      public Match setAlias(String alias)
      Set the alias the human readable name that will be used as a part of registry entry name when the value matches.
      Parameters:
      alias - the matcher alias
      Returns:
      a reference to this, so the API can be used fluently
    • toJson

      public JsonObject toJson()