Class ExchangeAttributeParser
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.attribute.ExchangeAttributeParser
-
public class ExchangeAttributeParser extends Object
Attribute parser for exchange attributes. This builds an attribute from a string definition.This uses a service loader mechanism to allow additional token types to be loaded. Token definitions are loaded from the provided class loader.
-
-
Constructor Summary
Constructors Constructor Description ExchangeAttributeParser(ClassLoader classLoader, List<ExchangeAttributeWrapper> wrappers)
ExchangeAttributeParser(List<ExchangeAttributeWrapper> wrappers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExchangeAttribute
parse(String valueString)
Parses the provided value string, and turns it into a list of exchange attributes.ExchangeAttribute
parseSingleToken(String token)
-
-
-
Constructor Detail
-
ExchangeAttributeParser
public ExchangeAttributeParser(List<ExchangeAttributeWrapper> wrappers)
-
ExchangeAttributeParser
public ExchangeAttributeParser(ClassLoader classLoader, List<ExchangeAttributeWrapper> wrappers)
-
-
Method Detail
-
parse
public ExchangeAttribute parse(String valueString)
Parses the provided value string, and turns it into a list of exchange attributes.Tokens are created according to the following rules:
%a - % followed by single character. %% is an escape for a literal % %{.*}a? - % plus curly braces with any amount of content inside, followed by an optional character ${.*} - $ followed by a curly braces to reference an item from the predicate context
- Parameters:
valueString
-- Returns:
-
parseSingleToken
public ExchangeAttribute parseSingleToken(String token)
-
-