org.globus.wsrf.utils
Class AddressingUtils

java.lang.Object
  extended byorg.globus.wsrf.utils.AddressingUtils

public class AddressingUtils
extends java.lang.Object

Utility class for construction WS-Addressing endpoint references and for discovering the base address of a container


Field Summary
private static org.globus.util.I18n i18n
           
(package private) static org.apache.commons.logging.Log logger
           
 
Constructor Summary
AddressingUtils()
           
 
Method Summary
static org.apache.axis.message.addressing.EndpointReferenceType createEndpointReference(ResourceContext context, ResourceKey key)
          Create a endpoint reference using the current service's address, as specified by the resource context, and the given resource identifier
static org.apache.axis.message.addressing.EndpointReferenceType createEndpointReference(ResourceKey key)
          Create a endpoint reference using the current service's address and the given resource identifier
static org.apache.axis.message.addressing.EndpointReferenceType createEndpointReference(java.lang.String address, ResourceKey key)
          Create a endpoint reference from the given parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.commons.logging.Log logger

i18n

private static org.globus.util.I18n i18n
Constructor Detail

AddressingUtils

public AddressingUtils()
Method Detail

createEndpointReference

public static org.apache.axis.message.addressing.EndpointReferenceType createEndpointReference(java.lang.String address,
                                                                                               ResourceKey key)
                                                                                        throws java.lang.Exception
Create a endpoint reference from the given parameters

Parameters:
address - URL for the service
key - Resource identifier. May be null
Returns:
The endpoint reference
Throws:
java.lang.Exception

createEndpointReference

public static org.apache.axis.message.addressing.EndpointReferenceType createEndpointReference(ResourceKey key)
                                                                                        throws java.lang.Exception
Create a endpoint reference using the current service's address and the given resource identifier

Parameters:
key - Resource identifier. May be null
Returns:
The endpoint reference
Throws:
java.lang.Exception

createEndpointReference

public static org.apache.axis.message.addressing.EndpointReferenceType createEndpointReference(ResourceContext context,
                                                                                               ResourceKey key)
                                                                                        throws java.lang.Exception
Create a endpoint reference using the current service's address, as specified by the resource context, and the given resource identifier

Parameters:
context - The resource context used for obtaining a URL for the current service
key - The resource identifier
Returns:
The constructed endpoint reference
Throws:
java.lang.Exception