org.apache.cxf.ws.discovery
Class WSDiscoveryClient

java.lang.Object
  extended by org.apache.cxf.ws.discovery.WSDiscoveryClient
All Implemented Interfaces:
Closeable

public class WSDiscoveryClient
extends Object
implements Closeable


Field Summary
static QName SERVICE_QNAME
           
 
Constructor Summary
WSDiscoveryClient()
           
WSDiscoveryClient(org.apache.cxf.Bus bus)
           
WSDiscoveryClient(String address)
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 String getAddress()
           
 int getDefaultProbeTimeout()
           
 boolean isAdHoc()
           
 List<EndpointReference> probe()
           
 ProbeMatchesType probe(ProbeType params)
           
 ProbeMatchesType probe(ProbeType params, int timeout)
           
 List<EndpointReference> probe(QName type)
           
 HelloType register(EndpointReference ert)
          Sends the "Hello" to broadcast the availability of a service
 HelloType register(HelloType hello)
          Sends the "Hello" to broadcast the availability of a service
 void setAddress(String a)
           
 void setDefaultProbeTimeout(int i)
           
 void unregister(ByeType bye)
           
 void unregister(HelloType hello)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_QNAME

public static final QName SERVICE_QNAME
Constructor Detail

WSDiscoveryClient

public WSDiscoveryClient()

WSDiscoveryClient

public WSDiscoveryClient(org.apache.cxf.Bus bus)

WSDiscoveryClient

public WSDiscoveryClient(String address)
Method Detail

setDefaultProbeTimeout

public void setDefaultProbeTimeout(int i)

getDefaultProbeTimeout

public int getDefaultProbeTimeout()

getAddress

public String getAddress()

setAddress

public void setAddress(String a)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
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(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<EndpointReference> probe()

probe

public List<EndpointReference> probe(QName type)

probe

public ProbeMatchesType probe(ProbeType params)

probe

public ProbeMatchesType probe(ProbeType params,
                              int timeout)

isAdHoc

public boolean isAdHoc()


Apache CXF