org.ow2.petals.binding.soap.addressing
Class WSAHelper

java.lang.Object
  extended by org.ow2.petals.binding.soap.addressing.WSAHelper

public class WSAHelper
extends java.lang.Object

WS-Addressing Helper. Creates the JBI information from strings.

Author:
chamerling - eBM WebSourcing

Constructor Summary
WSAHelper()
           
 
Method Summary
static Addressing getAddressing(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the addressing information from the extensions
static Addressing getAddressing(java.lang.String address)
          Create an addressing object
static Addressing merge(Addressing wsAddressing, Addressing suAddressing)
          Merge the addressing beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAHelper

public WSAHelper()
Method Detail

getAddressing

public static final Addressing getAddressing(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the addressing information from the extensions

Parameters:
extensions -
Returns:
null if extensions is null or the addressing bean filled with the extensions properties.

getAddressing

public static Addressing getAddressing(java.lang.String address)
Create an addressing object

Parameters:
address - The address
Returns:
The Addressing object created or null if the address provided is null or empty

merge

public static final Addressing merge(Addressing wsAddressing,
                                     Addressing suAddressing)
Merge the addressing beans. This bean is defined like this :
  1. If it exists, get the TO address from wsAddressing
  2. b>If it exists, get the others address from the service unit

Parameters:
wsAddressing - The bean from the org.ow2.petals.component.framework.api.SoapConstants.WSStar.ADDRESSING_KEY property
suAddressing - The bean from the service unit
Returns:
The bean merged


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.