@Service public class ServerService extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.log4j.Logger |
LOG |
private au.com.jcloud.lxd.service.ICachingLxdService |
lxdService |
private RequestHelperService |
requestHelperService |
static String |
SERVER_NAME_DEFAULT |
| Constructor and Description |
|---|
ServerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearServerInSession(javax.servlet.http.HttpServletRequest request) |
Server |
createNewServer(String name,
String description,
String hostAndPort,
String remoteCert,
String remoteKey) |
Server |
getServerFromSession(javax.servlet.http.HttpServletRequest request) |
Map<String,Server> |
getServerMap(javax.servlet.http.HttpServletRequest request) |
private void |
initServerMap(javax.servlet.http.HttpServletRequest request,
Map<String,Server> serverMap) |
void |
setLxdService(au.com.jcloud.lxd.service.ICachingLxdService lxdService) |
void |
setServerInSession(javax.servlet.http.HttpServletRequest request,
Server server) |
private static final org.apache.log4j.Logger LOG
public static final String SERVER_NAME_DEFAULT
@Autowired private au.com.jcloud.lxd.service.ICachingLxdService lxdService
@Autowired private RequestHelperService requestHelperService
private void initServerMap(javax.servlet.http.HttpServletRequest request,
Map<String,Server> serverMap)
public void clearServerInSession(javax.servlet.http.HttpServletRequest request)
public void setServerInSession(javax.servlet.http.HttpServletRequest request,
Server server)
public Server getServerFromSession(javax.servlet.http.HttpServletRequest request)
public Server createNewServer(String name, String description, String hostAndPort, String remoteCert, String remoteKey) throws CloneNotSupportedException
CloneNotSupportedExceptionpublic void setLxdService(au.com.jcloud.lxd.service.ICachingLxdService lxdService)
Copyright © 2025 JCloud. All rights reserved.