Package io.quarkus.undertow.deployment
Class ServletConfig.ContextPathConverter
- java.lang.Object
-
- io.quarkus.undertow.deployment.ServletConfig.ContextPathConverter
-
- All Implemented Interfaces:
Serializable,org.eclipse.microprofile.config.spi.Converter<String>
- Enclosing class:
- ServletConfig
@Priority(200) public static class ServletConfig.ContextPathConverter extends Object implements org.eclipse.microprofile.config.spi.Converter<String>
This converter adds a '/' at the beginning of the context path but does not add one at the end, given we want to support binding to a context without an ending '/'.See ContextPathTestCase for an example.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextPathConverter()
-
-
-
Method Detail
-
convert
public String convert(String value) throws IllegalArgumentException, NullPointerException
- Specified by:
convertin interfaceorg.eclipse.microprofile.config.spi.Converter<String>- Throws:
IllegalArgumentExceptionNullPointerException
-
-