uk.org.ogsadai.client.toolkit.wsrf
Class AddressingUtils

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.wsrf.AddressingUtils

public class AddressingUtils
extends java.lang.Object

Utilities for generating WS-Addressing headers to be used in a SOAP message to an OGSA-DAI WSRF service.

Author:
The OGSA-DAI Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement.
 
Constructor Summary
AddressingUtils()
           
 
Method Summary
static org.apache.axis.message.addressing.AddressingHeaders generateHeaders(java.net.URL url)
          Generates the WS-Addressing header for a SOAP message from a given URL.
static org.apache.axis.message.addressing.AddressingHeaders generateHeaders(java.net.URL url, ResourceID id)
          Constructs the WS-Addressing header for a SOAP message from a given URL and resource ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement.

See Also:
Constant Field Values
Constructor Detail

AddressingUtils

public AddressingUtils()
Method Detail

generateHeaders

public static org.apache.axis.message.addressing.AddressingHeaders generateHeaders(java.net.URL url)
                                                                            throws java.net.MalformedURLException
Generates the WS-Addressing header for a SOAP message from a given URL.

Parameters:
url - URL of the service
Returns:
addressing headers
Throws:
java.net.MalformedURLException - if the URL is malformed.

generateHeaders

public static org.apache.axis.message.addressing.AddressingHeaders generateHeaders(java.net.URL url,
                                                                                   ResourceID id)
                                                                            throws java.net.MalformedURLException
Constructs the WS-Addressing header for a SOAP message from a given URL and resource ID.

Parameters:
url - URL of the service
id - ID of the resource
Returns:
addressing headers
Throws:
java.net.MalformedURLException - if the URL is malformed.