Celtix User APIs

org.objectweb.celtix.bindings
Class AbstractServerBinding

java.lang.Object
  extended by org.objectweb.celtix.bindings.AbstractServerBinding
All Implemented Interfaces:
BindingBase, ServerBinding

public abstract class AbstractServerBinding
extends Object
implements ServerBinding


Field Summary
protected  Bus bus
           
protected  javax.xml.ws.Endpoint endpoint
           
protected  org.objectweb.celtix.ws.addressing.EndpointReferenceType reference
           
protected  ServerBindingEndpointCallback sbeCallback
           
protected  ServerTransport transport
           
 
Constructor Summary
AbstractServerBinding(Bus b, org.objectweb.celtix.ws.addressing.EndpointReferenceType ref, javax.xml.ws.Endpoint ep, ServerBindingEndpointCallback sbcb)
           
 
Method Summary
 void activate()
          Activate the endpoint.
protected abstract  javax.xml.ws.handler.MessageContext createBindingMessageContext(javax.xml.ws.handler.MessageContext orig)
           
 ObjectMessageContext createObjectContext()
          Create an ObjectMessageContext.
protected  OutputStreamMessageContext createOutputStreamContext(ServerTransport t, javax.xml.ws.handler.MessageContext bindingContext)
           
protected abstract  ServerTransport createTransport(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
           
 void deactivate()
          Deactivate the endpoint.
protected  void dispatch(InputStreamMessageContext inCtx, ServerTransport t)
           
protected  void finalPrepareOutputStreamContext(ServerTransport t, javax.xml.ws.handler.MessageContext bindingContext, OutputStreamMessageContext ostreamContext)
           
 javax.xml.ws.Endpoint getEndpoint()
          Gets the endpoint that is the target of the opertaions for this binding
protected abstract  QName getOperationName(javax.xml.ws.handler.MessageContext ctx)
           
protected abstract  javax.xml.ws.handler.MessageContext invokeOnProvider(javax.xml.ws.handler.MessageContext requestCtx, javax.xml.ws.ServiceMode mode)
           
protected  boolean isFault(ObjectMessageContext objCtx, javax.xml.ws.handler.MessageContext bindingCtx)
           
protected abstract  void marshal(ObjectMessageContext objCtx, javax.xml.ws.handler.MessageContext replyCtx)
           
protected abstract  void marshalFault(ObjectMessageContext objCtx, javax.xml.ws.handler.MessageContext replyCtx)
           
protected  void postDispatch(ServerTransport t, javax.xml.ws.handler.MessageContext bindingContext, OutputStreamMessageContext ostreamContext)
           
protected  OutputStreamMessageContext processResponse(ServerTransport st, ObjectMessageContext objectContext, javax.xml.ws.handler.MessageContext replyContext, boolean isOneWay)
           
protected abstract  void read(InputStreamMessageContext inCtx, javax.xml.ws.handler.MessageContext context)
           
protected abstract  void unmarshal(javax.xml.ws.handler.MessageContext requestCtx, ObjectMessageContext objCtx)
           
protected abstract  void write(javax.xml.ws.handler.MessageContext replyCtx, OutputStreamMessageContext outCtx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.celtix.bindings.BindingBase
createHandlerInvoker, getBinding, isCompatibleWithAddress
 

Field Detail

bus

protected final Bus bus

reference

protected final org.objectweb.celtix.ws.addressing.EndpointReferenceType reference

transport

protected ServerTransport transport

endpoint

protected javax.xml.ws.Endpoint endpoint

sbeCallback

protected ServerBindingEndpointCallback sbeCallback
Constructor Detail

AbstractServerBinding

public AbstractServerBinding(Bus b,
                             org.objectweb.celtix.ws.addressing.EndpointReferenceType ref,
                             javax.xml.ws.Endpoint ep,
                             ServerBindingEndpointCallback sbcb)
Method Detail

getEndpoint

public javax.xml.ws.Endpoint getEndpoint()
Description copied from interface: ServerBinding
Gets the endpoint that is the target of the opertaions for this binding

Specified by:
getEndpoint in interface ServerBinding
Returns:
The endpoint that is the target of operations for this binding

activate

public void activate()
              throws javax.wsdl.WSDLException,
                     IOException
Description copied from interface: ServerBinding
Activate the endpoint. Usually creates the transport and binds to the transport.

Specified by:
activate in interface ServerBinding
Throws:
javax.wsdl.WSDLException
IOException

deactivate

public void deactivate()
                throws IOException
Description copied from interface: ServerBinding
Deactivate the endpoint. Tear down the transport, disconnect from ports, etc...

Specified by:
deactivate in interface ServerBinding
Throws:
IOException

createObjectContext

public ObjectMessageContext createObjectContext()
Description copied from interface: BindingBase
Create an ObjectMessageContext.

Specified by:
createObjectContext in interface BindingBase
Returns:
The newly created ObjectMessageContext.

createTransport

protected abstract ServerTransport createTransport(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
                                            throws javax.wsdl.WSDLException,
                                                   IOException
Throws:
javax.wsdl.WSDLException
IOException

createBindingMessageContext

protected abstract javax.xml.ws.handler.MessageContext createBindingMessageContext(javax.xml.ws.handler.MessageContext orig)

marshal

protected abstract void marshal(ObjectMessageContext objCtx,
                                javax.xml.ws.handler.MessageContext replyCtx)

marshalFault

protected abstract void marshalFault(ObjectMessageContext objCtx,
                                     javax.xml.ws.handler.MessageContext replyCtx)

unmarshal

protected abstract void unmarshal(javax.xml.ws.handler.MessageContext requestCtx,
                                  ObjectMessageContext objCtx)

write

protected abstract void write(javax.xml.ws.handler.MessageContext replyCtx,
                              OutputStreamMessageContext outCtx)
                       throws IOException
Throws:
IOException

read

protected abstract void read(InputStreamMessageContext inCtx,
                             javax.xml.ws.handler.MessageContext context)
                      throws IOException
Throws:
IOException

invokeOnProvider

protected abstract javax.xml.ws.handler.MessageContext invokeOnProvider(javax.xml.ws.handler.MessageContext requestCtx,
                                                                        javax.xml.ws.ServiceMode mode)

createOutputStreamContext

protected OutputStreamMessageContext createOutputStreamContext(ServerTransport t,
                                                               javax.xml.ws.handler.MessageContext bindingContext)
                                                        throws IOException
Throws:
IOException

finalPrepareOutputStreamContext

protected void finalPrepareOutputStreamContext(ServerTransport t,
                                               javax.xml.ws.handler.MessageContext bindingContext,
                                               OutputStreamMessageContext ostreamContext)
                                        throws IOException
Throws:
IOException

isFault

protected boolean isFault(ObjectMessageContext objCtx,
                          javax.xml.ws.handler.MessageContext bindingCtx)

dispatch

protected void dispatch(InputStreamMessageContext inCtx,
                        ServerTransport t)

processResponse

protected OutputStreamMessageContext processResponse(ServerTransport st,
                                                     ObjectMessageContext objectContext,
                                                     javax.xml.ws.handler.MessageContext replyContext,
                                                     boolean isOneWay)
                                              throws IOException
Throws:
IOException

postDispatch

protected void postDispatch(ServerTransport t,
                            javax.xml.ws.handler.MessageContext bindingContext,
                            OutputStreamMessageContext ostreamContext)
                     throws IOException
Throws:
IOException

getOperationName

protected abstract QName getOperationName(javax.xml.ws.handler.MessageContext ctx)

Celtix User APIs