|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.client.utils.WebserviceHttpClientFactory
public abstract class WebserviceHttpClientFactory
WebserviceHttpClientFactory creates instances of WebserviceHttpClient
. The
default implementation of WebserviceHttpClientFactory can be obtained by the getInstance()
method. A
different implementation can be installed at runtime by the setInstance(WebserviceHttpClientFactory)
method, and that instance will be returned by getInstance()
.
Once a factory is obtained, the getWebserviceHttpClient(String, String, String, String, java.util.Map)
getWebserviceHttpClient} method will return a
WebserviceHttpClient
instance.
Constructor Summary | |
---|---|
WebserviceHttpClientFactory()
|
Method Summary | |
---|---|
static WebserviceHttpClientFactory |
getInstance()
Get the Factory instance. |
abstract WebserviceHttpClient |
getWebserviceHttpClient(java.lang.String urlSpec,
java.lang.String basePath,
java.lang.String username,
java.lang.String password,
java.util.Map query)
Get a WebserviceHttpClient from the parameters. |
abstract WebserviceHttpClient |
getWebserviceHttpClient(java.lang.String urlSpec,
java.lang.String basePath,
java.lang.String username,
java.lang.String password,
java.util.Map query,
java.io.File uploadFile,
java.lang.String fileparam)
Get a WebserviceHttpClient from the parameters. |
abstract WebserviceHttpClient |
getWebserviceHttpClient(java.lang.String urlSpec,
java.lang.String basePath,
java.lang.String username,
java.lang.String password,
java.util.Map query,
java.io.File uploadFile,
java.lang.String fileparam,
java.io.OutputStream destination,
java.lang.String expectedContentType)
Get a WebserviceHttpClient from the parameters. |
abstract WebserviceHttpClient |
getWebserviceHttpClient(java.lang.String urlSpec,
java.lang.String basePath,
java.lang.String username,
java.lang.String password,
java.util.Map query,
java.util.Map<java.lang.String,? extends java.lang.Object> formData)
Get a WebserviceHttpClient from the parameters. |
abstract WebserviceHttpClient |
getWebserviceHttpClient(java.lang.String urlSpec,
java.lang.String basePath,
java.lang.String username,
java.lang.String password,
java.util.Map query,
java.io.OutputStream destination,
java.lang.String expectedContentType)
Get a WebserviceHttpClient from the parameters. |
static void |
setInstance(WebserviceHttpClientFactory factory)
Set the factory instance to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebserviceHttpClientFactory()
Method Detail |
---|
public static WebserviceHttpClientFactory getInstance()
public static void setInstance(WebserviceHttpClientFactory factory)
factory
- the factorypublic abstract WebserviceHttpClient getWebserviceHttpClient(java.lang.String urlSpec, java.lang.String basePath, java.lang.String username, java.lang.String password, java.util.Map query)
urlSpec
- URL to requestbasePath
- base context path on the server for the Webservice applicationusername
- username to userpassword
- password to usequery
- query parameters to add to the request
public abstract WebserviceHttpClient getWebserviceHttpClient(java.lang.String urlSpec, java.lang.String basePath, java.lang.String username, java.lang.String password, java.util.Map query, java.io.File uploadFile, java.lang.String fileparam)
urlSpec
- URL to requestbasePath
- base context path on the server for the Webservice applicationusername
- username to userpassword
- password to usequery
- query parameters to add to the requestuploadFile
- file to uploadfileparam
- name of the file upload parameter
public abstract WebserviceHttpClient getWebserviceHttpClient(java.lang.String urlSpec, java.lang.String basePath, java.lang.String username, java.lang.String password, java.util.Map query, java.io.File uploadFile, java.lang.String fileparam, java.io.OutputStream destination, java.lang.String expectedContentType)
urlSpec
- URL to requestbasePath
- base context path on the server for the Webservice applicationusername
- username to userpassword
- password to usequery
- query parameters to add to the requestuploadFile
- file to uploadfileparam
- name of the file upload parameterdestination
- an OutputStream to which to write the result dataexpectedContentType
- the content type expected. if the type does not match, no data is written to the
outputstream. if null, any type is allowed.
public abstract WebserviceHttpClient getWebserviceHttpClient(java.lang.String urlSpec, java.lang.String basePath, java.lang.String username, java.lang.String password, java.util.Map query, java.io.OutputStream destination, java.lang.String expectedContentType)
urlSpec
- URL to requestbasePath
- base context path on the server for the Webservice applicationusername
- username to userpassword
- password to usequery
- query parameters to add to the requestdestination
- an OutputStream to which to write the result dataexpectedContentType
- the content type expected. if the type does not match, no data is written to the
outputstream. if null, any type is allowed.
public abstract WebserviceHttpClient getWebserviceHttpClient(java.lang.String urlSpec, java.lang.String basePath, java.lang.String username, java.lang.String password, java.util.Map query, java.util.Map<java.lang.String,? extends java.lang.Object> formData)
urlSpec
- URL to requestbasePath
- base context path on the server for the Webservice applicationusername
- username to userpassword
- password to usequery
- query parameters to add to the requestdestination
- an OutputStream to which to write the result dataexpectedContentType
- the content type expected. if the type does not match, no data is written to the
outputstream. if null, any type is allowed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |