public class DiscoveryClient extends Object
Constructor and Description |
---|
DiscoveryClient(org.apache.axis2.context.ConfigurationContext cfgCtx,
String proxyURL) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleanup the service client
|
void |
engageModule(String module)
Engage the named module on the Discovery client
|
TargetService[] |
probe()
Send a generic probe request to the Discovery proxy.
|
TargetService[] |
probe(QName[] types,
URI[] scopes)
Send a probe request with the specified types and scopes to the discovery proxy.
|
TargetService[] |
probe(QName[] types,
URI[] scopes,
String matchBy)
Send a probe request with the specified types and scopes to the discovery proxy.
|
TargetService |
resolve(String epr)
Send a WS-Discovery resolve request for the given service ID
|
void |
setProperty(String name,
Object value) |
public DiscoveryClient(org.apache.axis2.context.ConfigurationContext cfgCtx, String proxyURL) throws DiscoveryException
DiscoveryException
public void engageModule(String module) throws DiscoveryException
module
- Name of the module (eg: rampart)DiscoveryException
- If an error occurs while engaging the named modulepublic TargetService[] probe() throws DiscoveryException
DiscoveryException
- if an error occured while contacting the WS-D proxypublic TargetService[] probe(QName[] types, URI[] scopes) throws DiscoveryException
types
- Types to be included in the probescopes
- Scopes to be included in the probeDiscoveryException
- if an error occured while contacting the WS-D proxypublic TargetService[] probe(QName[] types, URI[] scopes, String matchBy) throws DiscoveryException
types
- Types to be included in the probescopes
- Scopes to be included in the probematchBy
- The matching rule for scopesDiscoveryException
- if an error occured while contacting the WS-D proxypublic TargetService resolve(String epr) throws DiscoveryException
epr
- ID of the service to be resolvedDiscoveryException
- if an error occured while contacting the WS-D proxypublic void cleanup() throws DiscoveryException
DiscoveryException
- on errorCopyright © 2019 WSO2. All rights reserved.