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.addressing.EndpointReferenceType reference
           
protected  ServerTransport transport
           
 
Constructor Summary
AbstractServerBinding(Bus b, org.objectweb.celtix.addressing.EndpointReferenceType ref, javax.xml.ws.Endpoint ep)
           
 
Method Summary
 void activate()
           
protected abstract  javax.xml.ws.handler.MessageContext createBindingMessageContext(javax.xml.ws.handler.MessageContext orig)
           
 ObjectMessageContext createObjectContext()
          Create an ObjectMessageContext to hold objects of a message.
 void deactivate()
           
protected abstract  TransportFactory getDefaultTransportFactory(String address)
           
 javax.xml.ws.Endpoint getEndpoint()
           
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 abstract  void marshal(ObjectMessageContext objCtx, javax.xml.ws.handler.MessageContext replyCtx)
           
protected abstract  void read(InputStreamMessageContext inCtx, javax.xml.ws.handler.MessageContext context)
           
protected  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
getBinding, isCompatibleWithAddress
 

Field Detail

bus

protected final Bus bus

reference

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

transport

protected ServerTransport transport

endpoint

protected javax.xml.ws.Endpoint endpoint
Constructor Detail

AbstractServerBinding

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

getEndpoint

public javax.xml.ws.Endpoint getEndpoint()
Specified by:
getEndpoint in interface ServerBinding

activate

public void activate()
              throws javax.wsdl.WSDLException,
                     IOException
Specified by:
activate in interface ServerBinding
Throws:
javax.wsdl.WSDLException
IOException

deactivate

public void deactivate()
                throws IOException
Specified by:
deactivate in interface ServerBinding
Throws:
IOException

createObjectContext

public ObjectMessageContext createObjectContext()
Description copied from interface: BindingBase
Create an ObjectMessageContext to hold objects of a message.

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

getDefaultTransportFactory

protected abstract TransportFactory getDefaultTransportFactory(String address)

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)

unmarshal

protected 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)
                                                                 throws RemoteException
Throws:
RemoteException

getOperationName

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

Celtix User APIs