View Javadoc

    1   package org.codehaus.xfire.service.binding;
    2
    3   import javax.xml.stream.XMLStreamReader;
    4   import javax.xml.stream.XMLStreamWriter;
    5
    6   import org.codehaus.xfire.MessageContext;
    7   import org.codehaus.xfire.fault.XFireFault;
    8   import org.codehaus.xfire.service.MessageHeaderInfo;
    9   import org.codehaus.xfire.service.MessagePartInfo;
    10  import org.codehaus.xfire.service.Service;
    11
    12  public interface BindingProvider
    13  {
    14      void initialize(Service newParam);
    15
    16      Object readParameter(MessagePartInfo p, XMLStreamReader reader, MessageContext context)
    17          throws XFireFault;
    18
    19      void writeParameter(MessagePartInfo p,
    20                          XMLStreamWriter writer,
    21                          MessageContext context,
    22                          Object value)
    23          throws XFireFault;
    24
    25      Object readHeader(MessageHeaderInfo p, MessageContext context)
    26          throws XFireFault;
    27
    28      void writeHeader(MessagePartInfo p, MessageContext context, Object value)
    29          throws XFireFault;
    30  }