public class WsClient extends Object
This client is configured for the REST implementations that use the predefined
PATH constants. Users should call destroy() to release the connection.
The following rules apply to the client implementation.
Thrown exceptions contain the error code and the error message.
About the logging policy...
Every client method logs an entry when it is invoked.
It logs a second entry once the REST invocation has completed, and provided a runtime
exception was not thrown by the REST library.
The second log entry either logs the response code (success), or logs the response code and the response message (error in the result).
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Force the destruction of the JAX-RS client.
|
ApplicationWsDelegate |
getApplicationDelegate() |
DebugWsDelegate |
getDebugDelegate() |
com.sun.jersey.api.client.Client |
getJerseyClient() |
ManagementWsDelegate |
getManagementDelegate() |
PreferencesWsDelegate |
getPreferencesWsDelegate() |
SchedulerWsDelegate |
getSchedulerDelegate() |
TargetWsDelegate |
getTargetWsDelegate() |
public WsClient(String rootUrl)
rootUrl - the root URL (example: http://192.168.1.18:9007/dm/)public void destroy()
public ApplicationWsDelegate getApplicationDelegate()
public ManagementWsDelegate getManagementDelegate()
public DebugWsDelegate getDebugDelegate()
public TargetWsDelegate getTargetWsDelegate()
public SchedulerWsDelegate getSchedulerDelegate()
public PreferencesWsDelegate getPreferencesWsDelegate()
public com.sun.jersey.api.client.Client getJerseyClient()
Copyright © 2017. All rights reserved.