本文整理汇总了Java中org.opensaml.xml.util.XMLHelper.constructQName方法的典型用法代码示例。如果您正苦于以下问题:Java XMLHelper.constructQName方法的具体用法?Java XMLHelper.constructQName怎么用?Java XMLHelper.constructQName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opensaml.xml.util.XMLHelper
的用法示例。
在下文中一共展示了XMLHelper.constructQName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Policy policy = (Policy) xmlObject;
QName nameQName = new QName(Policy.NAME_ATTRIB_NAME);
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (nameQName.equals(attribQName)) {
policy.setName(attribute.getValue());
} else if (Policy.WSU_ID_ATTR_NAME.equals(attribQName)) {
policy.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(policy.getUnknownAttributes(), attribute);
}
}
示例2: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
PolicyReference pr = (PolicyReference) xmlObject;
QName uriName = new QName(PolicyReference.URI_ATTRIB_NAME);
QName digestName = new QName(PolicyReference.DIGEST_ATTRIB_NAME);
QName digestAlgorithmName = new QName(PolicyReference.DIGEST_ALGORITHM_ATTRIB_NAME);
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix());
if (uriName.equals(attribQName)) {
pr.setURI(attribute.getValue());
} else if (digestName.equals(attribQName)) {
pr.setDigest(attribute.getValue());
} else if (digestAlgorithmName.equals(attribQName)) {
pr.setDigestAlgorithm(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(pr.getUnknownAttributes(), attribute);
}
}
示例3: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
QName attrName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (AttributedDateTime.WSU_ID_ATTR_NAME.equals(attrName)) {
dateTime.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(dateTime.getUnknownAttributes(), attribute);
}
}
示例4: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AttributedString attributedString = (AttributedString) xmlObject;
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (AttributedString.WSU_ID_ATTR_NAME.equals(attribQName)) {
attributedString.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(attributedString.getUnknownAttributes(), attribute);
}
}
示例5: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Timestamp timestamp = (Timestamp) xmlObject;
QName attrName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (Timestamp.WSU_ID_ATTR_NAME.equals(attrName)) {
timestamp.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(timestamp.getUnknownAttributes(), attribute);
}
}
示例6: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
UsernameToken token = (UsernameToken) xmlObject;
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (UsernameToken.WSU_ID_ATTR_NAME.equals(attribQName)) {
token.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(token.getUnknownAttributes(), attribute);
}
}
示例7: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
SignatureConfirmation sc = (SignatureConfirmation) xmlObject;
QName attrName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (SignatureConfirmation.WSU_ID_ATTR_NAME.equals(attrName)) {
sc.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else if (SignatureConfirmation.VALUE_ATTRIB_NAME.equals(attribute.getLocalName())) {
sc.setValue(attribute.getValue());
} else {
super.processAttribute(xmlObject, attribute);
}
}
示例8: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
SecurityTokenReference str = (SecurityTokenReference) xmlObject;
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (SecurityTokenReference.WSU_ID_ATTR_NAME.equals(attribQName)) {
str.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else if (SecurityTokenReference.WSSE_USAGE_ATTR_NAME.equals(attribQName)) {
str.setWSSEUsages(XMLHelper.getAttributeValueAsList(attribute));
} else {
XMLHelper.unmarshallToAttributeMap(str.getUnknownAttributes(), attribute);
}
}
示例9: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AttributedURI attributedURI = (AttributedURI) xmlObject;
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (AttributedURI.WSU_ID_ATTR_NAME.equals(attribQName)) {
attributedURI.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(attributedURI.getUnknownAttributes(), attribute);
}
}
示例10: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Detail detail = (Detail) xmlObject;
QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
.getPrefix());
if (attribute.isId()) {
detail.getUnknownAttributes().registerID(attribQName);
}
detail.getUnknownAttributes().put(attribQName, attribute.getValue());
}
示例11: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Header header = (Header) xmlObject;
QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
.getPrefix());
if (attribute.isId()) {
header.getUnknownAttributes().registerID(attribQName);
}
header.getUnknownAttributes().put(attribQName, attribute.getValue());
}
示例12: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Body body = (Body) xmlObject;
QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
.getPrefix());
if (attribute.isId()) {
body.getUnknownAttributes().registerID(attribQName);
}
body.getUnknownAttributes().put(attribQName, attribute.getValue());
}
示例13: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Envelope envelope = (Envelope) xmlObject;
QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
.getPrefix());
if (attribute.isId()) {
envelope.getUnknownAttributes().registerID(attribQName);
}
envelope.getUnknownAttributes().put(attribQName, attribute.getValue());
}
示例14: AbstractXMLObject
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/**
* Constructor.
*
* @param namespaceURI the namespace the element is in
* @param elementLocalName the local name of the XML element this Object represents
* @param namespacePrefix the prefix for the given namespace
*/
protected AbstractXMLObject(String namespaceURI, String elementLocalName, String namespacePrefix) {
nsManager = new NamespaceManager(this);
idIndex = new IDIndex(this);
elementQname = XMLHelper.constructQName(namespaceURI, elementLocalName, namespacePrefix);
if(namespaceURI != null){
setElementNamespacePrefix(namespacePrefix);
}
}
示例15: processAttribute
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/**
* Unmarshalls the <code>xs:anyAttribute</code> attributes.
*
* {@inheritDoc}
*/
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
AttributeExtensibleXMLObject anyAttribute = (AttributeExtensibleXMLObject) xmlObject;
QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
.getPrefix());
if (attribute.isId()) {
anyAttribute.getUnknownAttributes().registerID(attribQName);
}
anyAttribute.getUnknownAttributes().put(attribQName, attribute.getValue());
}