@RequestMapping(value="/server") @RestController public class ServerRestController extends BaseRestController<au.com.jcloud.lxd.model.ServerInfo>
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
private ServerService |
serverService |
| Constructor and Description |
|---|
ServerRestController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
addServer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
AddServerInput addServerInput,
org.springframework.validation.Errors errors) |
org.springframework.http.ResponseEntity<?> |
deleteServer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
String name) |
Map<String,au.com.jcloud.lxd.model.ServerInfo> |
getEntities(javax.servlet.http.HttpServletRequest request) |
Map<String,au.com.jcloud.lxd.model.ServerInfo> |
getEntities(au.com.jcloud.lxd.service.ICachingLxdService lxdService) |
au.com.jcloud.lxd.model.ServerInfo |
getEntity(au.com.jcloud.lxd.service.ICachingLxdService lxdService,
String name) |
org.springframework.http.ResponseEntity<?> |
listServers(javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<?> |
selectServer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
String name) |
void |
setServerService(ServerService serverService) |
getLxdService, getLxdService, getServerService, isDefaultServerAndWindowsOs, performSearch, reloadEntity, searchEntity, searchEntity, setLxdService, viewEntitypublic static final org.apache.log4j.Logger LOG
@Autowired private ServerService serverService
@RequestMapping(value="/list",
method={GET,POST})
public org.springframework.http.ResponseEntity<?> listServers(javax.servlet.http.HttpServletRequest request)
@PostMapping(value="/{name}")
public org.springframework.http.ResponseEntity<?> selectServer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
String name)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletException@PostMapping(value="/create")
public org.springframework.http.ResponseEntity<?> addServer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@RequestBody
AddServerInput addServerInput,
org.springframework.validation.Errors errors)
throws IOException,
javax.servlet.ServletException,
CloneNotSupportedException,
InterruptedException
IOExceptionjavax.servlet.ServletExceptionCloneNotSupportedExceptionInterruptedException@PostMapping(value="/delete/{name}")
public org.springframework.http.ResponseEntity<?> deleteServer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model,
@PathVariable
String name)
throws IOException,
javax.servlet.ServletException,
InterruptedException
IOExceptionjavax.servlet.ServletExceptionInterruptedExceptionpublic void setServerService(ServerService serverService)
setServerService in class BaseRestController<au.com.jcloud.lxd.model.ServerInfo>public au.com.jcloud.lxd.model.ServerInfo getEntity(au.com.jcloud.lxd.service.ICachingLxdService lxdService,
String name)
throws IOException,
InterruptedException
getEntity in class BaseRestController<au.com.jcloud.lxd.model.ServerInfo>IOExceptionInterruptedExceptionpublic Map<String,au.com.jcloud.lxd.model.ServerInfo> getEntities(javax.servlet.http.HttpServletRequest request) throws IOException, InterruptedException
getEntities in class BaseRestController<au.com.jcloud.lxd.model.ServerInfo>IOExceptionInterruptedExceptionpublic Map<String,au.com.jcloud.lxd.model.ServerInfo> getEntities(au.com.jcloud.lxd.service.ICachingLxdService lxdService) throws IOException, InterruptedException
getEntities in class BaseRestController<au.com.jcloud.lxd.model.ServerInfo>IOExceptionInterruptedExceptionCopyright © 2025 JCloud. All rights reserved.