public class ServerService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServerService.WebConnectionParameters
An interface for providing connection parameters for the web app
|
Constructor and Description |
---|
ServerService(ServerService.WebConnectionParameters connParams)
Create ServerService using the connection parameters
|
ServerService(java.lang.String url,
java.lang.String username,
java.lang.String password)
Create ServerService using the Framework to provdie connection parameters
|
Modifier and Type | Method and Description |
---|---|
ServerService.WebConnectionParameters |
getConnParams()
Return the connection params configured for this ServerService
|
WebserviceResponse |
makeRundeckRequest(java.lang.String urlPath,
java.util.Map queryParams,
java.io.File uploadFile,
java.lang.String method,
java.lang.String uploadFileParam)
Make the request to the ItNav workbench.
|
WebserviceResponse |
makeRundeckRequest(java.lang.String urlPath,
java.util.Map queryParams,
java.io.File uploadFile,
java.lang.String method,
java.lang.String expectedContentType,
java.util.Map<java.lang.String,? extends java.lang.Object> formData,
java.lang.String uploadFileParam)
Make the request to the ItNav workbench.
|
WebserviceResponse |
makeRundeckRequest(java.lang.String urlPath,
java.util.Map queryParams,
java.io.File uploadFile,
java.lang.String method,
java.lang.String expectedContentType,
java.lang.String uploadFileParam)
Make the request to the ItNav workbench.
|
WebserviceResponse |
makeRundeckRequest(java.lang.String urlPath,
java.util.Map queryParams,
java.util.Map<java.lang.String,? extends java.lang.Object> formData)
Make the request to the ItNav workbench.
|
void |
setConnParams(ServerService.WebConnectionParameters connParams)
Set the connection params.
|
public ServerService(java.lang.String url, java.lang.String username, java.lang.String password)
url
- connection urlusername
- connection usernamepassword
- connection passwordpublic ServerService(ServerService.WebConnectionParameters connParams)
connParams
- the connection infopublic WebserviceResponse makeRundeckRequest(java.lang.String urlPath, java.util.Map queryParams, java.io.File uploadFile, java.lang.String method, java.lang.String uploadFileParam) throws CoreException, java.net.MalformedURLException
urlPath
- the path for the requestqueryParams
- any query parametersuploadFile
- a file to upload with the request.method
- HTTP connection method, e.g. "get","post","put","delete".uploadFileParam
- name of the uploaded file paramCoreException
- if an error occursjava.net.MalformedURLException
- if connection URL or urlPath params are malformed.public WebserviceResponse makeRundeckRequest(java.lang.String urlPath, java.util.Map queryParams, java.util.Map<java.lang.String,? extends java.lang.Object> formData) throws CoreException, java.net.MalformedURLException
urlPath
- the path for the requestqueryParams
- any query parametersformData
- form dataCoreException
- if an error occursjava.net.MalformedURLException
- if connection URL or urlPath params are malformed.public WebserviceResponse makeRundeckRequest(java.lang.String urlPath, java.util.Map queryParams, java.io.File uploadFile, java.lang.String method, java.lang.String expectedContentType, java.lang.String uploadFileParam) throws CoreException, java.net.MalformedURLException
uploadFileParam
- name of the uploaded file paramurlPath
- the path for the requestqueryParams
- any query parametersuploadFile
- a file to upload with the request.method
- HTTP connection method, e.g. "get","post","put","delete".expectedContentType
- content typeCoreException
- if an error occursjava.net.MalformedURLException
- if connection URL or urlPath params are malformed.public WebserviceResponse makeRundeckRequest(java.lang.String urlPath, java.util.Map queryParams, java.io.File uploadFile, java.lang.String method, java.lang.String expectedContentType, java.util.Map<java.lang.String,? extends java.lang.Object> formData, java.lang.String uploadFileParam) throws CoreException, java.net.MalformedURLException
uploadFileParam
- name of the uploaded file paramurlPath
- the path for the requestqueryParams
- any query parametersuploadFile
- a file to upload with the request.method
- HTTP connection method, e.g. "get","post","put","delete".expectedContentType
- expected content typeformData
- dataCoreException
- if an error occursjava.net.MalformedURLException
- if connection URL or urlPath params are malformed.public ServerService.WebConnectionParameters getConnParams()
public void setConnParams(ServerService.WebConnectionParameters connParams)
connParams
- connection params