Package io.jenkins.blueocean.rest.model
Class GenericResource<T>
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.GenericResource<T>
- All Implemented Interfaces:
Reachable
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Resource that exposes primitive type value as JSON bean -
Constructor Summary
-
Method Summary
-
Constructor Details
-
GenericResource
-
GenericResource
-
-
Method Details
-
getState
Description copied from class:Resource
Returns the DTO object that gets databound to Json/XML etc. for state transfer -
getDynamic
Allows value to expose additional routes- Parameters:
token
- route to look for in this value- Returns:
- Object corresponding to given token
- Throws:
io.jenkins.blueocean.commons.ServiceException.NotFoundException
- if no route found
-
getLink
- Returns:
- Gives
Link
to a reachable Resource or Container
-