Class ResourcePathDeclaration.Component

java.lang.Object
com.soklet.ResourcePathDeclaration.Component
Enclosing class:
ResourcePathDeclaration

@Immutable public static final class ResourcePathDeclaration.Component extends Object
Represents a /-delimited part of a ResourcePathDeclaration.

For example, given the path declaration /languages/{languageId}:

  • Component 0 would have type LITERAL and value languages
  • Component 1 would have type PLACEHOLDER and value languageId

You may obtain instances via the with(String, ComponentType) factory method.

Note: this type is not normally used by Soklet applications unless they choose to implement a custom ResourceMethodResolver.

Author:
Mark Allen
See Also: