Class Directive


  • public class Directive
    extends Object
    The class Directive represents a discovery service DirectiveType element. Current implementation supports the following four directive types: AUTHENTICATE_REQUESTER, AUTHORIZE_REQUESTER, AUTHENTICATE_SESSION_CONTEXT, and ENCRYPT_RESOURCEID.

    The following schema fragment specifies the expected content within the DirectiveType object.

     <complexType name="DirectiveType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <attribute name="descriptionIDRefs" type="{http://www.w3.org/2001/XMLSchema}IDREFS" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • AUTHENTICATE_REQUESTER

        public static final String AUTHENTICATE_REQUESTER
        DirectiveType AuthenticateRequester.
        See Also:
        Constant Field Values
      • AUTHORIZE_REQUESTER

        public static final String AUTHORIZE_REQUESTER
        DirectiveType AuthorizeRequester.
        See Also:
        Constant Field Values
      • AUTHENTICATE_SESSION_CONTEXT

        public static final String AUTHENTICATE_SESSION_CONTEXT
        DirectiveType AuthenticateSessionContext.
        See Also:
        Constant Field Values
      • GENERATE_BEARER_TOKEN

        public static final String GENERATE_BEARER_TOKEN
        DirectiveType GenerateBearerToken.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Directive

        public Directive​(String directiveType)
        Constructs a directive instance for a type of directive.
        Parameters:
        directiveType - Type of the directive.
      • Directive

        public Directive​(Element elem)
                  throws DiscoveryException
        Constructs a directive instance from DOM element.
        Parameters:
        elem - DirectiveType DOM element.
        Throws:
        DiscoveryException - if error occurs.
    • Method Detail

      • getDescriptionIDRef

        public List getDescriptionIDRef()
        Returns a list of description ID references.
        Returns:
        a list of description ID references.
        See Also:
        setDescriptionIDRef(List)
      • setDescriptionIDRef

        public void setDescriptionIDRef​(List idrefs)
        Sets a list of description ID references.
        Parameters:
        idrefs - a list of description ID references to be set.
        See Also:
        getDescriptionIDRef()
      • setDirectiveType

        public void setDirectiveType​(String directiveType)
        Sets type of the directive.
        Parameters:
        directiveType - type of the directive to be set.
        See Also:
        getDirectiveType()
      • toString

        public String toString()
        Returns the directive object in string format.
        Overrides:
        toString in class Object
        Returns:
        the directive object in string format.