Class ResourcePathDeclaration.Component
java.lang.Object
com.soklet.core.ResourcePathDeclaration.Component
- Enclosing class:
ResourcePathDeclaration
Represents a
/
-delimited part of a ResourcePathDeclaration
.
For example, given the path declaration /languages/{languageId}
:
Component
0 would have typeLITERAL
and valuelanguages
Component
1 would have typePLACEHOLDER
and valuelanguageId
Note: this type is not normally used by Soklet applications unless they choose to implement a custom ResourceMethodResolver
.
- Author:
- Mark Allen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Component
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getValue
What is the value of this resource path declaration component?Note that the value of a
ResourcePathDeclaration.ComponentType.PLACEHOLDER
component does not include enclosing braces. For example, given the path declaration/languages/{languageId}
, the component at index 1 would have valuelanguageId
, not{languageId}
.- Returns:
- the value of this component
-
getType
What type of resource path declaration component is this?- Returns:
- the type of component, e.g.
ResourcePathDeclaration.ComponentType.LITERAL
orResourcePathDeclaration.ComponentType.PLACEHOLDER
-