Class CommandLineMetadataController
java.lang.Object
io.spring.initializr.web.controller.AbstractMetadataController
io.spring.initializr.web.controller.CommandLineMetadataController
RestController
that handles assistance for CLI support using a
CommandLineHelpGenerator
.- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from class io.spring.initializr.web.controller.AbstractMetadataController
metadataProvider
-
Constructor Summary
ConstructorDescriptionCommandLineMetadataController
(InitializrMetadataProvider metadataProvider, TemplateRenderer templateRenderer) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>
serviceCapabilitiesText
(String userAgent) Methods inherited from class io.spring.initializr.web.controller.AbstractMetadataController
createUniqueId, generateAppUrl
-
Constructor Details
-
CommandLineMetadataController
public CommandLineMetadataController(InitializrMetadataProvider metadataProvider, TemplateRenderer templateRenderer)
-
-
Method Details
-
serviceCapabilitiesText
@GetMapping(path="/", produces="text/plain") public org.springframework.http.ResponseEntity<String> serviceCapabilitiesText(@RequestHeader(value="User-Agent",required=false) String userAgent) throws IOException - Throws:
IOException
-