Package io.undertow.attribute
Class RemoteIPAttribute.Builder
- java.lang.Object
-
- io.undertow.attribute.RemoteIPAttribute.Builder
-
- All Implemented Interfaces:
ExchangeAttributeBuilder
- Enclosing class:
- RemoteIPAttribute
public static final class RemoteIPAttribute.Builder extends java.lang.Object implements ExchangeAttributeBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExchangeAttribute
build(java.lang.String token)
Build the attribute from a text based representation.java.lang.String
name()
The string representation of the attribute name.int
priority()
The priority of the builder.
-
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:ExchangeAttributeBuilder
The string representation of the attribute name. This is used solely for debugging / informational purposes- Specified by:
name
in interfaceExchangeAttributeBuilder
- Returns:
- The attribute name
-
build
public ExchangeAttribute build(java.lang.String token)
Description copied from interface:ExchangeAttributeBuilder
Build the attribute from a text based representation. If the attribute does not understand this representation then it will just return null.- Specified by:
build
in interfaceExchangeAttributeBuilder
- Parameters:
token
- The string token- Returns:
- The exchange attribute, or null
-
priority
public int priority()
Description copied from interface:ExchangeAttributeBuilder
The priority of the builder. Builders will be tried in priority builder. Built in builders use the priority range 0-100,- Specified by:
priority
in interfaceExchangeAttributeBuilder
- Returns:
- The priority
-
-