org.apache.axiom.soap
Interface RolePlayer


public interface RolePlayer

This interface represents the thing which provides us with the SOAP roles in a given context. Used to search through SOAP header blocks.


Method Summary
 java.util.List getRoles()
          Get a list of the roles supported.
 boolean isUltimateDestination()
          Are we the ultimate destination?
 

Method Detail

getRoles

public java.util.List getRoles()
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.

Returns:
a List containing URI Strings, one per custom role supported, or null

isUltimateDestination

public boolean isUltimateDestination()
Are we the ultimate destination?

Returns:
true if this is the ultimate destination, false if an intermediary.


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.