@Controller @RequestMapping(value="/streams") @ExposesResourceFor(value=StreamDefinitionResource.class) public class StreamsController extends XDController<StreamDefinition,StreamDefinitionResourceAssembler,StreamDefinitionResource>
XDController.QueryOptions
Constructor and Description |
---|
StreamsController(StreamDeployer streamDeployer,
StreamDefinitionRepository streamDefinitionRepository) |
Modifier and Type | Method and Description |
---|---|
protected StreamDefinition |
createDefinition(java.lang.String name,
java.lang.String definition) |
org.springframework.hateoas.PagedResources<StreamDefinitionResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<StreamDefinition> assembler)
List stream definitions.
|
delete, deleteAll, deploy, display, getDeployer, listValues, save, undeploy, undeployAll
@Autowired public StreamsController(StreamDeployer streamDeployer, StreamDefinitionRepository streamDefinitionRepository)
@ResponseBody @RequestMapping(value="/definitions", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.PagedResources<StreamDefinitionResource> list(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<StreamDefinition> assembler)
protected StreamDefinition createDefinition(java.lang.String name, java.lang.String definition)
createDefinition
in class XDController<StreamDefinition,StreamDefinitionResourceAssembler,StreamDefinitionResource>