|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.client.services.ServerService
public class ServerService
ServerService provides the ability to make webservice requests to the Web server.
Nested Class Summary | |
---|---|
static interface |
ServerService.WebConnectionParameters
An interface for providing connection parameters for the web app |
Constructor Summary | |
---|---|
ServerService(Framework framework)
Create ServerService using the Framework to provdie connection parameters |
|
ServerService(ServerService.WebConnectionParameters connParams)
Create ServerService using the connection parameters |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerService(Framework framework)
framework
- Framework to provide connection parameterspublic ServerService(ServerService.WebConnectionParameters connParams)
connParams
- the connection infoMethod Detail |
---|
public 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 param
CoreException
- if an error occurs
java.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 parametersuploadFile
- a file to upload with the request.method
- HTTP connection method, e.g. "get","post","put","delete".
CoreException
- if an error occurs
java.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".
CoreException
- if an error occurs
java.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".
CoreException
- if an error occurs
java.net.MalformedURLException
- if connection URL or urlPath params are malformed.public ServerService.WebConnectionParameters getConnParams()
public void setConnParams(ServerService.WebConnectionParameters connParams)
connParams
- connection params
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |