org.objectweb.celtix.bindings
Class AbstractClientBinding
java.lang.Object
org.objectweb.celtix.bindings.AbstractClientBinding
- All Implemented Interfaces:
- BindingBase, ClientBinding
public abstract class AbstractClientBinding
- extends Object
- implements ClientBinding
Method Summary |
protected abstract javax.xml.ws.handler.MessageContext |
createBindingMessageContext(javax.xml.ws.handler.MessageContext orig)
|
ObjectMessageContext |
createObjectContext()
Create an ObjectMessageContext . |
protected OutputStreamMessageContext |
createOutputStreamContext(javax.xml.ws.handler.MessageContext bindingContext)
|
protected ClientTransport |
createTransport(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
|
protected void |
finalPrepareOutputStreamContext(javax.xml.ws.handler.MessageContext bindingContext,
OutputStreamMessageContext ostreamContext)
|
ObjectMessageContext |
getObjectMessageContextAsync(InputStreamMessageContext ins,
HandlerInvoker handlerInvoker,
DataBindingCallback callback,
ObjectMessageContext context)
|
protected ClientTransport |
getTransport()
|
protected abstract boolean |
hasFault(javax.xml.ws.handler.MessageContext context)
|
ObjectMessageContext |
invoke(ObjectMessageContext context,
DataBindingCallback callback)
Makes a synchronous request and returns the context containing the response. |
Future<ObjectMessageContext> |
invokeAsync(ObjectMessageContext context,
DataBindingCallback callback,
Executor executor)
Makes an asynchronous request using the contents of the ObjectMessageContext . |
void |
invokeOneWay(ObjectMessageContext context,
DataBindingCallback callback)
Makes a one way request using the contents of the ObjectMessageContext . |
protected abstract void |
marshal(ObjectMessageContext objContext,
javax.xml.ws.handler.MessageContext context,
DataBindingCallback callback)
|
protected abstract void |
read(InputStreamMessageContext inCtx,
javax.xml.ws.handler.MessageContext context)
|
protected void |
storeAddress(javax.xml.ws.handler.MessageContext context)
|
protected abstract void |
unmarshal(javax.xml.ws.handler.MessageContext context,
ObjectMessageContext objContext,
DataBindingCallback callback)
|
protected abstract void |
unmarshalFault(javax.xml.ws.handler.MessageContext context,
ObjectMessageContext objContext,
DataBindingCallback callback)
|
protected abstract void |
write(javax.xml.ws.handler.MessageContext context,
OutputStreamMessageContext outCtx)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bus
protected final Bus bus
reference
protected final org.objectweb.celtix.ws.addressing.EndpointReferenceType reference
port
protected javax.wsdl.Port port
transport
protected ClientTransport transport
AbstractClientBinding
public AbstractClientBinding(Bus b,
org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
throws javax.wsdl.WSDLException,
IOException
- Throws:
javax.wsdl.WSDLException
IOException
getTransport
protected ClientTransport getTransport()
throws javax.wsdl.WSDLException,
IOException
- Throws:
javax.wsdl.WSDLException
IOException
createTransport
protected ClientTransport createTransport(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
throws javax.wsdl.WSDLException,
IOException
- Throws:
javax.wsdl.WSDLException
IOException
storeAddress
protected void storeAddress(javax.xml.ws.handler.MessageContext context)
createObjectContext
public ObjectMessageContext createObjectContext()
- Description copied from interface:
BindingBase
- Create an
ObjectMessageContext
.
- Specified by:
createObjectContext
in interface BindingBase
- Returns:
- The newly created ObjectMessageContext.
createBindingMessageContext
protected abstract javax.xml.ws.handler.MessageContext createBindingMessageContext(javax.xml.ws.handler.MessageContext orig)
marshal
protected abstract void marshal(ObjectMessageContext objContext,
javax.xml.ws.handler.MessageContext context,
DataBindingCallback callback)
unmarshal
protected abstract void unmarshal(javax.xml.ws.handler.MessageContext context,
ObjectMessageContext objContext,
DataBindingCallback callback)
unmarshalFault
protected abstract void unmarshalFault(javax.xml.ws.handler.MessageContext context,
ObjectMessageContext objContext,
DataBindingCallback callback)
hasFault
protected abstract boolean hasFault(javax.xml.ws.handler.MessageContext context)
write
protected abstract void write(javax.xml.ws.handler.MessageContext context,
OutputStreamMessageContext outCtx)
read
protected abstract void read(InputStreamMessageContext inCtx,
javax.xml.ws.handler.MessageContext context)
createOutputStreamContext
protected OutputStreamMessageContext createOutputStreamContext(javax.xml.ws.handler.MessageContext bindingContext)
throws IOException
- Throws:
IOException
finalPrepareOutputStreamContext
protected void finalPrepareOutputStreamContext(javax.xml.ws.handler.MessageContext bindingContext,
OutputStreamMessageContext ostreamContext)
throws IOException
- Throws:
IOException
invoke
public ObjectMessageContext invoke(ObjectMessageContext context,
DataBindingCallback callback)
throws IOException
- Description copied from interface:
ClientBinding
- Makes a synchronous request and returns the context containing the response.
- Specified by:
invoke
in interface ClientBinding
- Parameters:
context
- Holds the method and parameters for the request.callback
- Callback object to handle the IO of the objects in the context
- Returns:
- ObjectMessageContext containing the request response.
- Throws:
IOException
invokeOneWay
public void invokeOneWay(ObjectMessageContext context,
DataBindingCallback callback)
throws IOException
- Description copied from interface:
ClientBinding
- Makes a one way request using the contents of the
ObjectMessageContext
.
- Specified by:
invokeOneWay
in interface ClientBinding
- Parameters:
context
- Holds the method and parameters for the request.callback
- Callback object to handle the IO of the objects in the context
- Throws:
IOException
invokeAsync
public Future<ObjectMessageContext> invokeAsync(ObjectMessageContext context,
DataBindingCallback callback,
Executor executor)
throws IOException
- Description copied from interface:
ClientBinding
- Makes an asynchronous request using the contents of the
ObjectMessageContext
.
- Specified by:
invokeAsync
in interface ClientBinding
- Parameters:
context
- Holds the method and parameters for the request.callback
- Callback object to handle the IO of the objects in the context
- Returns:
- Future for accessing the result of the request.
- Throws:
IOException
getObjectMessageContextAsync
public ObjectMessageContext getObjectMessageContextAsync(InputStreamMessageContext ins,
HandlerInvoker handlerInvoker,
DataBindingCallback callback,
ObjectMessageContext context)