org.codehaus.xfire.service.binding
Interface BindingProvider

All Known Implementing Classes:
AbstractBindingProvider, MessageBindingProvider

public interface BindingProvider

A BindingProvider provides the ability to map XML and java objects. This can come in the form of simple POJOs or a DOM tree. To use one must just implement the interface and provide it to the ObjectServiceFactory.

Author:
Dan Diephouse

Method Summary
 SchemaType getSchemaType(javax.xml.namespace.QName name, Service service)
           
 javax.xml.namespace.QName getSuggestedName(Service service, OperationInfo op, int param)
          Gives a binding the chance to suggest a name for a particular parameter.
 void initialize(Service service)
           
 void initialize(Service service, Binding binding)
           
 java.lang.Object readParameter(MessagePartInfo p, javax.xml.stream.XMLStreamReader reader, MessageContext context)
           
 void writeParameter(MessagePartInfo p, javax.xml.stream.XMLStreamWriter writer, MessageContext context, java.lang.Object value)
           
 

Method Detail

initialize

void initialize(Service service)

initialize

void initialize(Service service,
                Binding binding)

getSuggestedName

javax.xml.namespace.QName getSuggestedName(Service service,
                                           OperationInfo op,
                                           int param)
Gives a binding the chance to suggest a name for a particular parameter.

Parameters:
m - The method of the parameter.
param - The index of the parameter. -1 specifies the return parameter.
Returns:
The suggestion. null if there isn't a suggestion.

readParameter

java.lang.Object readParameter(MessagePartInfo p,
                               javax.xml.stream.XMLStreamReader reader,
                               MessageContext context)
                               throws XFireFault
Throws:
XFireFault

writeParameter

void writeParameter(MessagePartInfo p,
                    javax.xml.stream.XMLStreamWriter writer,
                    MessageContext context,
                    java.lang.Object value)
                    throws XFireFault
Throws:
XFireFault

getSchemaType

SchemaType getSchemaType(javax.xml.namespace.QName name,
                         Service service)


Copyright © 2004-2009. All Rights Reserved.