com.sun.xml.ws.tx.common
Class AddressManager

java.lang.Object
  extended by com.sun.xml.ws.tx.common.AddressManager

public class AddressManager
extends java.lang.Object

This class handles all address calculations for the wstx-service enpoints

Since:
1.0

Method Summary
static java.net.URI getAddress(java.lang.Class portType, boolean secure)
          Return an address for the specified port type based on the 'secure' flag.
static java.net.URI getPreferredAddress(java.lang.Class portType)
          Return an address for the specified port type using the preferred scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPreferredAddress

public static java.net.URI getPreferredAddress(java.lang.Class portType)
Return an address for the specified port type using the preferred scheme.

This method should be used most of the time unless you explicitly know which scheme you want back.

Parameters:
portType - the endpoint port type
Returns:
a URI representing the preferred endpoint address

getAddress

public static java.net.URI getAddress(java.lang.Class portType,
                                      boolean secure)
Return an address for the specified port type based on the 'secure' flag. If the 'secure' flag is true, the address will begin with "https", otherwise it will begin with "http".

Parameters:
portType - the endpoint port type
secure - flag to control whether the address is secure or non-secure
Returns:
a URI representing the endpoint address with the specified secure or non-secure scheme