@Controller @VisitRefer(refer="decision-management-connection") @RequestMapping(value="/{version}/config/connection") public class ConnectionsResource extends java.lang.Object
构造器和说明 |
---|
ConnectionsResource() |
限定符和类型 | 方法和说明 |
---|---|
Response |
addConnectionsConfig(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
ConnectionInfoBean bean)
新增一个数据库连接信息
|
Response |
deleteConnectionInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String connectionId)
根据connectionId 删除一个数据库连接信息
|
Response |
getConnectionPoolInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String connectionName)
获取连接池信息
|
Response |
getConnectionsInfos(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
int privilegeType,
java.lang.String keyword)
查看拥有具体权限的数据连接(不含密码)
|
Response |
getConnectionsInfos(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String keyword)
获取所有的数据库连接信息
|
Response |
openConnection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String connectionId)
获取连接状态
|
Response |
shutdownConnection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String connectionId)
删除编辑状态
|
Response |
testConnectionData(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
ConnectionInfoBean testBean)
测试连接
|
Response |
updateConnectionInfo(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
ConnectionInfoBean bean)
更新一个数据库连接信息
|
@RequestMapping(value="/list", method=GET) @VisitRefer(required=false) @ResponseBody public Response getConnectionsInfos(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestParam(value="keyword",required=false) java.lang.String keyword) throws java.lang.Exception
req
- res
- version
- java.lang.Exception
@RequestMapping(value="/pool/info", method=GET) @VisitRefer(required=false) @ResponseBody public Response getConnectionPoolInfo(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestParam(value="connectionName") java.lang.String connectionName) throws java.lang.Exception
req
- res
- version
- java.lang.Exception
@RequestMapping(value="/list/{privilegeType}", method=GET) @VisitRefer(required=false) @ResponseBody public Response getConnectionsInfos(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="privilegeType") int privilegeType, @RequestParam(value="keyword",required=false) java.lang.String keyword) throws java.lang.Exception
req
- res
- version
- privilegeType
- keyword
- java.lang.Exception
@RequestMapping(method=POST) @ResponseBody public Response addConnectionsConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody ConnectionInfoBean bean) throws java.lang.Exception
req
- res
- version
- bean
- java.lang.Exception
@RequestMapping(value="/{connectionId}", method=DELETE) @ResponseBody public Response deleteConnectionInfo(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="connectionId") java.lang.String connectionId) throws java.lang.Exception
req
- res
- version
- connectionId
- java.lang.Exception
@RequestMapping(method=PUT) @ResponseBody public Response updateConnectionInfo(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody ConnectionInfoBean bean) throws java.lang.Exception
req
- res
- version
- bean
- java.lang.Exception
@RequestMapping(value="/test", method=POST) @ResponseBody public Response testConnectionData(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody ConnectionInfoBean testBean) throws java.lang.Exception
req
- res
- version
- testBean
- java.lang.Exception
@RequestMapping(value="/{connectionId}/status", method=GET) @ResponseBody public Response openConnection(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="connectionId") java.lang.String connectionId) throws java.lang.Exception
req
- res
- version
- connectionId
- java.lang.Exception
@RequestMapping(value="/{connectionId}/status", method=DELETE) @ResponseBody public Response shutdownConnection(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="connectionId") java.lang.String connectionId) throws java.lang.Exception
req
- res
- version
- connectionId
- java.lang.Exception