Package org.apache.cxf.ws.discovery
Class WSDiscoveryClient
java.lang.Object
org.apache.cxf.ws.discovery.WSDiscoveryClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWSDiscoveryClient(String address) WSDiscoveryClient(org.apache.cxf.Bus b) WSDiscoveryClient(org.apache.cxf.Bus b, String address) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()intbooleanisAdHoc()List<jakarta.xml.ws.EndpointReference>probe()List<jakarta.xml.ws.EndpointReference>register(jakarta.xml.ws.EndpointReference ert) Sends the "Hello" to broadcast the availability of a serviceSends the "Hello" to broadcast the availability of a serviceresolve(jakarta.xml.ws.wsaddressing.W3CEndpointReference ref) resolve(jakarta.xml.ws.wsaddressing.W3CEndpointReference ref, int timeout) voidsetAddress(String a) voidsetDefaultProbeTimeout(int i) voidsetSoapVersion(boolean do11) voidWS-Discovery will use SOAP 1.2 by default.voidsetVersion(boolean version10) voidBy default, CXF's WS-Discovery implementation is based on WS-Discovery 1.1.voidunregister(ByeType bye) voidunregister(HelloType hello)
-
Field Details
-
SERVICE_QNAME
-
-
Constructor Details
-
WSDiscoveryClient
public WSDiscoveryClient() -
WSDiscoveryClient
public WSDiscoveryClient(org.apache.cxf.Bus b) -
WSDiscoveryClient
-
WSDiscoveryClient
-
-
Method Details
-
setDefaultProbeTimeout
public void setDefaultProbeTimeout(int i) -
getDefaultProbeTimeout
public int getDefaultProbeTimeout() -
getAddress
-
setAddress
-
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
finalize
-
register
Sends the "Hello" to broadcast the availability of a service- Parameters:
hello-- Returns:
- the hello
-
register
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
-
unregister
-
probe
-
probe
-
probe
-
probe
-
resolve
-
resolve
-
isAdHoc
public boolean isAdHoc()
-