org.openliberty.xmltooling.soapbinding
Class UsageDirective

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.ws.soap.common.AbstractExtensibleSOAPObject
              extended by org.openliberty.xmltooling.soapbinding.UsageDirective
All Implemented Interfaces:
org.opensaml.ws.soap.common.SOAPObject, org.opensaml.xml.AttributeExtensibleXMLObject, org.opensaml.xml.ElementExtensibleXMLObject, org.opensaml.xml.validation.ValidatingXMLObject, org.opensaml.xml.XMLObject

public class UsageDirective
extends org.opensaml.ws.soap.common.AbstractExtensibleSOAPObject

Participants in the ID-WSF framework may need to indicate the privacy policy associated with a message. To facilitate this, senders, acting as either a client or a server, may add one or more <UsageDirective> header blocks to the SOAP Header of the message being sent. A <UsageDirective> appearing in a SOAP-based ID-* request message expresses intended usage. A <UsageDirective> appearing in a response expresses how the receiver of the response is to use the response data. A <UsageDirective> in a response message containing no ID-WSF response message data, a fault response for example, may be used to express policies acceptable to the responder.

   <xs:complexType name="UsageDirectiveType">
     <xs:sequence>
       <xs:any namespace="##other" processContents="lax" 
         maxOccurs="unbounded"/>
     </xs:sequence>
     <xs:attribute name="ref" type="xs:IDREF" use="required"/>
     <xs:anyAttribute namespace="##other" processContents="lax"/>
   </xs:complexType>
 
   <xs:element name="UsageDirective" type="UsageDirectiveType"/>
 

Author:
asa

Nested Class Summary
static class UsageDirective.Builder
          Internal Builder
static class UsageDirective.Marshaller
          Internal Marshaller
static class UsageDirective.Unmarshaller
          Internal Unmarshaller
 
Field Summary
static java.lang.String ATT_REF
           
static java.lang.String LOCAL_NAME
           
private  java.lang.String ref
          An attribute referring to an element of the SOAP-based ID-* message to which the usage directive applies.
 
Constructor Summary
  UsageDirective()
           
protected UsageDirective(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
           
 
Method Summary
 java.lang.String getRef()
           
 void setRef(java.lang.String ref)
           
 
Methods inherited from class org.opensaml.ws.soap.common.AbstractExtensibleSOAPObject
getOrderedChildren, getUnknownAttributes, getUnknownXMLObjects, getUnknownXMLObjects
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

LOCAL_NAME

public static final java.lang.String LOCAL_NAME
See Also:
Constant Field Values

ref

private java.lang.String ref
An attribute referring to an element of the SOAP-based ID-* message to which the usage directive applies.


ATT_REF

public static final java.lang.String ATT_REF
See Also:
Constant Field Values
Constructor Detail

UsageDirective

public UsageDirective()

UsageDirective

protected UsageDirective(java.lang.String namespaceURI,
                         java.lang.String elementLocalName,
                         java.lang.String namespacePrefix)
Method Detail

getRef

public java.lang.String getRef()

setRef

public void setRef(java.lang.String ref)