Celtix User APIs

org.objectweb.celtix.bindings
Interface BindingFactory


public interface BindingFactory

A factory interface for creating client and server bindings.


Method Summary
 ClientBinding createClientBinding(org.objectweb.celtix.ws.addressing.EndpointReferenceType reference)
          Creates a ClientBinding using the EndpointReferenceType.
 ServerBinding createServerBinding(org.objectweb.celtix.ws.addressing.EndpointReferenceType reference, javax.xml.ws.Endpoint endpoint, ServerBindingEndpointCallback endpointCallback)
          Creates a ServerBinding for the EndpointReferenceType and Endpoint provided.
 void init(Bus bus)
          Initialize the factory with a Bus reference.
 

Method Detail

init

void init(Bus bus)
Initialize the factory with a Bus reference.

Parameters:
bus - The Bus for this BindingFactory.

createClientBinding

ClientBinding createClientBinding(org.objectweb.celtix.ws.addressing.EndpointReferenceType reference)
                                  throws javax.wsdl.WSDLException,
                                         IOException
Creates a ClientBinding using the EndpointReferenceType.

Parameters:
reference - The EndpointReferenceType the binding will use.
Returns:
ClientBinding The newly created ClientBinding.
Throws:
javax.wsdl.WSDLException
IOException

createServerBinding

ServerBinding createServerBinding(org.objectweb.celtix.ws.addressing.EndpointReferenceType reference,
                                  javax.xml.ws.Endpoint endpoint,
                                  ServerBindingEndpointCallback endpointCallback)
                                  throws javax.wsdl.WSDLException,
                                         IOException
Creates a ServerBinding for the EndpointReferenceType and Endpoint provided.

Parameters:
reference - The EndpointReferenceType the binding will use.
endpoint - The server endpoint.
endpointCallback - The callback used by the binding to obtain additional information from the data binding layers.
Returns:
ServerBinding The newly created ServerBinding.
Throws:
javax.wsdl.WSDLException
IOException

Celtix User APIs