Package org.apache.cxf.ws.discovery
Class WSDiscoveryClient
- java.lang.Object
-
- org.apache.cxf.ws.discovery.WSDiscoveryClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class WSDiscoveryClient extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static QNameSERVICE_QNAME
-
Constructor Summary
Constructors Constructor Description WSDiscoveryClient()WSDiscoveryClient(String address)WSDiscoveryClient(Bus b)WSDiscoveryClient(Bus b, String address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()StringgetAddress()intgetDefaultProbeTimeout()booleanisAdHoc()List<javax.xml.ws.EndpointReference>probe()List<javax.xml.ws.EndpointReference>probe(QName type)ProbeMatchesTypeprobe(ProbeType params)ProbeMatchesTypeprobe(ProbeType params, int timeout)HelloTyperegister(javax.xml.ws.EndpointReference ert)Sends the "Hello" to broadcast the availability of a serviceHelloTyperegister(HelloType hello)Sends the "Hello" to broadcast the availability of a serviceResolveMatchTyperesolve(javax.xml.ws.wsaddressing.W3CEndpointReference ref)ResolveMatchTyperesolve(javax.xml.ws.wsaddressing.W3CEndpointReference ref, int timeout)voidsetAddress(String a)voidsetDefaultProbeTimeout(int i)voidsetSoapVersion(boolean do11)voidsetSoapVersion11()WS-Discovery will use SOAP 1.2 by default.voidsetVersion(boolean version10)voidsetVersion10()By default, CXF's WS-Discovery implementation is based on WS-Discovery 1.1.voidunregister(ByeType bye)voidunregister(HelloType hello)
-
-
-
Field Detail
-
SERVICE_QNAME
public static final QName SERVICE_QNAME
-
-
Method Detail
-
setDefaultProbeTimeout
public void setDefaultProbeTimeout(int i)
-
getDefaultProbeTimeout
public int getDefaultProbeTimeout()
-
getAddress
public String getAddress()
-
setAddress
public void setAddress(String a)
-
setVersion10
public void setVersion10()
By default, CXF's WS-Discovery implementation is based on WS-Discovery 1.1. Some devices will not respond to 1.1 probes. This allows CXF to use the WS-Discovery 1.0 namespaces and actions which will allow older devices to be discovered.
-
setVersion
public void setVersion(boolean version10)
-
setSoapVersion11
public void setSoapVersion11()
WS-Discovery will use SOAP 1.2 by default. This allows forcing the use of SOAP 1.1.
-
setSoapVersion
public void setSoapVersion(boolean do11)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
finalize
protected void finalize() throws Throwable
-
register
public HelloType register(HelloType hello)
Sends the "Hello" to broadcast the availability of a service- Parameters:
hello-- Returns:
- the hello
-
register
public HelloType register(javax.xml.ws.EndpointReference ert)
Sends the "Hello" to broadcast the availability of a service- Parameters:
ert- The endpoint reference of the Service itself- Returns:
- the Hello that was used to broadcast the availability.
-
unregister
public void unregister(ByeType bye)
-
unregister
public void unregister(HelloType hello)
-
probe
public List<javax.xml.ws.EndpointReference> probe()
-
probe
public ProbeMatchesType probe(ProbeType params)
-
probe
public ProbeMatchesType probe(ProbeType params, int timeout)
-
resolve
public ResolveMatchType resolve(javax.xml.ws.wsaddressing.W3CEndpointReference ref)
-
resolve
public ResolveMatchType resolve(javax.xml.ws.wsaddressing.W3CEndpointReference ref, int timeout)
-
isAdHoc
public boolean isAdHoc()
-
-