Package io.undertow.servlet.attribute
Class ServletRelativePathAttribute
- java.lang.Object
-
- io.undertow.servlet.attribute.ServletRelativePathAttribute
-
- All Implemented Interfaces:
ExchangeAttribute
public class ServletRelativePathAttribute extends Object implements ExchangeAttribute
The relative path- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServletRelativePathAttribute.Builder
-
Field Summary
Fields Modifier and Type Field Description static ExchangeAttributeINSTANCEstatic StringRELATIVE_PATHstatic StringRELATIVE_PATH_SHORT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadAttribute(HttpServerExchange exchange)StringtoString()voidwriteAttribute(HttpServerExchange exchange, String newValue)
-
-
-
Field Detail
-
RELATIVE_PATH_SHORT
public static final String RELATIVE_PATH_SHORT
- See Also:
- Constant Field Values
-
RELATIVE_PATH
public static final String RELATIVE_PATH
- See Also:
- Constant Field Values
-
INSTANCE
public static final ExchangeAttribute INSTANCE
-
-
Method Detail
-
readAttribute
public String readAttribute(HttpServerExchange exchange)
- Specified by:
readAttributein interfaceExchangeAttribute
-
writeAttribute
public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException
- Specified by:
writeAttributein interfaceExchangeAttribute- Throws:
ReadOnlyAttributeException
-
-