public class ClientCommunication extends Object
| Constructor and Description |
|---|
ClientCommunication(String url,
String username,
String password,
Proxy proxy)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getService(Class<T> serviceClass)
Returns a service communication proxy for the specified class.
|
<T> T |
getService(Class<T> serviceClass,
ClassLoader classLoader)
Returns a service communication proxy for the specified class.
|
void |
validate()
This method validates the connection.
|
void |
validateServerRoot()
This method validates if the server HTTP root is available.
|
public ClientCommunication(String url, String username, String password, Proxy proxy)
url - the LSPS server urlusername - password - proxy - IllegalArgumentException - if the url is not well-formed or the protocol is not http nor httpsNullPointerException - if the url or the username or the password is nullpublic <T> T getService(Class<T> serviceClass)
T - the service classserviceClass - the service classNullPointerException - if any of the arguments is nullpublic <T> T getService(Class<T> serviceClass, ClassLoader classLoader)
T - the service classserviceClass - the service classclassLoader - the class-loader to serialize and deserialize classesNullPointerException - if any of the arguments is nullpublic void validate()
CommunicationException - if any error occurspublic void validateServerRoot()
CommunicationException - if any error occursCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.