@RestController public class ApplicationController extends Object
| Constructor and Description |
|---|
ApplicationController() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Application> |
applications(String name)
List all applications with name
|
org.springframework.http.ResponseEntity<Instance> |
instance(String id)
Get a single instance.
|
org.springframework.http.ResponseEntity<String> |
proxy(String id,
String method,
javax.servlet.ServletRequest request)
Proxy call instance with specific management method
|
org.springframework.http.ResponseEntity<String> |
proxy(String id,
String method,
String param,
javax.servlet.ServletRequest request)
Proxy call instance with specific management method
|
org.springframework.http.ResponseEntity<String> |
proxyPost(String id,
String method,
String body,
javax.servlet.http.HttpServletRequest request)
Proxy call instance with specific management method (with Http POST method)
|
org.springframework.http.ResponseEntity<String> |
proxyPost(String id,
String method,
String body,
String param,
javax.servlet.ServletRequest request)
Proxy call instance with specific management method (with Http POST method)
|
@RequestMapping(value="/api/applications",
method=GET,
produces="application/json")
public Collection<Application> applications(@RequestParam(value="name",required=false)
String name)
@RequestMapping(value="/api/instance/{id}",
method=GET,
produces="application/json")
public org.springframework.http.ResponseEntity<Instance> instance(@PathVariable
String id)
id - The instance identifier.@RequestMapping(value="/api/instance/{id}/{method}",
method=GET)
public org.springframework.http.ResponseEntity<String> proxy(@PathVariable
String id,
@PathVariable
String method,
javax.servlet.ServletRequest request)
id - id of instancemethod - Management method name@RequestMapping(value="/api/instance/{id}/{method}/{param:.*}",
method=GET)
public org.springframework.http.ResponseEntity<String> proxy(@PathVariable
String id,
@PathVariable
String method,
@PathVariable
String param,
javax.servlet.ServletRequest request)
id - id of instancemethod - Management method nameparam - Management param value@RequestMapping(value="/api/instance/{id}/{method}",
method=POST)
public org.springframework.http.ResponseEntity<String> proxyPost(@PathVariable
String id,
@PathVariable
String method,
@RequestBody(required=false)
String body,
javax.servlet.http.HttpServletRequest request)
id - id of instancemethod - Management method name@RequestMapping(value="/api/instance/{id}/{method}/{param:.*}",
method=POST)
public org.springframework.http.ResponseEntity<String> proxyPost(@PathVariable
String id,
@PathVariable
String method,
@RequestBody(required=false)
String body,
@PathVariable
String param,
javax.servlet.ServletRequest request)
id - id of instancemethod - Management method nameparam - Management param valueCopyright © 2016 Pivotal Software, Inc.. All Rights Reserved.