org.ow2.easywsdl.wsdl.api.abstractItf
Interface AbsItfBinding<I extends AbsItfInterfaceType,BO extends AbsItfBindingOperation>

All Superinterfaces:
org.ow2.easywsdl.schema.api.SchemaElement, java.io.Serializable, WSDLElement, org.ow2.easywsdl.schema.api.XMLElement
All Known Subinterfaces:
Binding
All Known Implementing Classes:
AbstractBindingImpl, BindingImpl, BindingImpl

public interface AbsItfBinding<I extends AbsItfInterfaceType,BO extends AbsItfBindingOperation>
extends WSDLElement

This interface represents a port type binding and describes the protocol required for using operations in a port type.

Author:
Nicolas Salatge - eBM WebSourcing

Nested Class Summary
static class AbsItfBinding.BindingConstants
          SOAP Version Constants for the Message Exchange Patterns.
static class AbsItfBinding.StyleConstant
          Constants for the style of Message Exchange.
 
Method Summary
 void addBindingOperation(BO bindingOperation)
          Add an operation binding to binding.
 BO createBindingOperation()
          create binding operation
 BO getBindingOperation(java.lang.String name)
          Get the specified operation binding.
 java.util.List<BO> getBindingOperations()
          Get all the operation bindings defined here.
 java.lang.String getHttpContentEncodingDefault()
           
 java.lang.String getHttpDefaultMethod()
           
 java.lang.String getHttpQueryParameterSeparatorDefault()
           
 I getInterface()
          Get the port type this is a binding for.
 javax.xml.namespace.QName getQName()
          Get the name of this binding.
 AbsItfBinding.StyleConstant getStyle()
          get style
 java.lang.String getTransportProtocol()
          get the transport protocol
 AbsItfBinding.BindingConstants getTypeOfBinding()
          get type of binding
 java.lang.String getVersion()
          get the version of soap binding
 boolean isHttpCookies()
           
 BO removeBindingOperation(java.lang.String name)
          Remove the specified operation binding.
 void setInterface(I interfaceType)
          Set the port type this is a binding for.
 void setQName(javax.xml.namespace.QName name)
          Set the name of this binding.
 void setTransportProtocol(java.lang.String transportProtocol)
          set the transport protocol
 
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement
addOtherElements, getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Method Detail

setQName

void setQName(javax.xml.namespace.QName name)
Set the name of this binding.

Parameters:
name - the desired name

getQName

javax.xml.namespace.QName getQName()
Get the name of this binding.

Returns:
the binding name

setInterface

void setInterface(I interfaceType)
Set the port type this is a binding for.

Parameters:
interfaceType - the port type associated with this binding

getInterface

I getInterface()
Get the port type this is a binding for.

Returns:
the associated port type

createBindingOperation

BO createBindingOperation()
create binding operation

Returns:

addBindingOperation

void addBindingOperation(BO bindingOperation)
Add an operation binding to binding.

Parameters:
bindingOperation - the operation binding to be added

getBindingOperation

BO getBindingOperation(java.lang.String name)
Get the specified operation binding. Note that operation names can be overloaded within a PortType.

Throws:
java.lang.IllegalArgumentException - if duplicate operations are found.

getBindingOperations

java.util.List<BO> getBindingOperations()
Get all the operation bindings defined here.


removeBindingOperation

BO removeBindingOperation(java.lang.String name)
Remove the specified operation binding. Note that operation names can be overloaded within a PortType. Usage of the input and output message name parameters is as described for the getBindingOperation method.

Parameters:
name - the name of the operation binding to be removed.
Throws:
java.lang.IllegalArgumentException - if duplicate operations are found.
See Also:
getBindingOperation(String)

getTransportProtocol

java.lang.String getTransportProtocol()
get the transport protocol


setTransportProtocol

void setTransportProtocol(java.lang.String transportProtocol)
set the transport protocol

Parameters:
transportProtocol - TODO
Throws:
WSDLException

getStyle

AbsItfBinding.StyleConstant getStyle()
get style


getTypeOfBinding

AbsItfBinding.BindingConstants getTypeOfBinding()
get type of binding


getVersion

java.lang.String getVersion()
get the version of soap binding

Returns:

getHttpDefaultMethod

java.lang.String getHttpDefaultMethod()

getHttpQueryParameterSeparatorDefault

java.lang.String getHttpQueryParameterSeparatorDefault()

isHttpCookies

boolean isHttpCookies()

getHttpContentEncodingDefault

java.lang.String getHttpContentEncodingDefault()


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.