Class PathMarshaller
- java.lang.Object
-
- software.amazon.awssdk.protocols.core.PathMarshaller
-
public abstract class PathMarshaller extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static PathMarshaller
GREEDY
Marshaller for greedy path labels.static PathMarshaller
GREEDY_WITH_SLASHES
Marshaller for greedy path labels that allows leading slahes.static PathMarshaller
NON_GREEDY
Marshaller for non greedy path labels.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
marshall(String resourcePath, String paramName, String pathValue)
-
-
-
Field Detail
-
NON_GREEDY
public static final PathMarshaller NON_GREEDY
Marshaller for non greedy path labels. Value is URL encoded and then replaced in the request URI.
-
GREEDY
public static final PathMarshaller GREEDY
Marshaller for greedy path labels. Value is not URL encoded and replaced in the request URI.
-
GREEDY_WITH_SLASHES
public static final PathMarshaller GREEDY_WITH_SLASHES
Marshaller for greedy path labels that allows leading slahes. Value is not URL encoded and replaced in the request URI.
-
-
Method Detail
-
marshall
public abstract String marshall(String resourcePath, String paramName, String pathValue)
- Parameters:
resourcePath
- Current resource path with path param placeholderparamName
- Name of parameter (i.e. placeholder value {Foo})pathValue
- String value of path parameter.- Returns:
- New URI with placeholder replaced with marshalled value.
-
-