org.apache.axiom.ts.soap.header
Class SOAPRoleTest.MyRolePlayer

java.lang.Object
  extended by org.apache.axiom.ts.soap.header.SOAPRoleTest.MyRolePlayer
All Implemented Interfaces:
RolePlayer
Enclosing class:
SOAPRoleTest

protected static class SOAPRoleTest.MyRolePlayer
extends Object
implements RolePlayer


Constructor Summary
SOAPRoleTest.MyRolePlayer(boolean ultimateReceiver)
           
SOAPRoleTest.MyRolePlayer(boolean ultimateReceiver, String[] roles)
           
 
Method Summary
 List getRoles()
          Get a list of the roles supported.
 boolean isUltimateDestination()
          Are we the ultimate destination?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPRoleTest.MyRolePlayer

public SOAPRoleTest.MyRolePlayer(boolean ultimateReceiver)

SOAPRoleTest.MyRolePlayer

public SOAPRoleTest.MyRolePlayer(boolean ultimateReceiver,
                                 String[] roles)
Method Detail

getRoles

public List getRoles()
Description copied from interface: RolePlayer
Get a list of the roles supported. NOTE: the "next" role is automatically supported, and the "none" role (for SOAP 1.2) is automatically disallowed. The roles returned should only be the non-standard ones, since the ultimate destination role is also handled by the isUltimateDestination method below.

Specified by:
getRoles in interface RolePlayer
Returns:
a List containing URI Strings, one per custom role supported, or null

isUltimateDestination

public boolean isUltimateDestination()
Description copied from interface: RolePlayer
Are we the ultimate destination?

Specified by:
isUltimateDestination in interface RolePlayer
Returns:
true if this is the ultimate destination, false if an intermediary.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.