Annotation Type PathParameter
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface PathParameter
Marks a parameter of aMethod
those value forms a path of a request URI.Required types:
- primitive
- primitive wrappers
String
- Any object whose string representation may be read as a part of an URI path value correctly. See
Object.toString()
- Arrays of types described above
- Iterable of described above
- Maps of keys and values of types described above
- A POJO whose class has fields of following types: primitive types, primitive wrappers,
String
, any type of an object whose string representation may be read as a part of an URI path value correctly, seeObject.toString()
, arrays and iterables of listed types. Class of a POJO should extendMappedObject
-
-
Element Detail
-
name
String name
- Returns:
- name of a path variable
-
-
-
explode
boolean explode
- Returns:
- to explode parameter value or not. Default value is
false
. This has an effect when parameter value has typeMap
or type of some POJO.
- Default:
- false
-
-
-
style
PathStyles style
- Returns:
- style of a path variable. Default is
PathStyles.SIMPLE
- Default:
- ru.tinkoff.qa.neptune.http.api.service.mapping.annotations.parameters.path.PathStyles.SIMPLE
-
-