当前位置: 首页>>代码示例>>Java>>正文


Java XMLHelper.unmarshallToAttributeMap方法代码示例

本文整理汇总了Java中org.opensaml.xml.util.XMLHelper.unmarshallToAttributeMap方法的典型用法代码示例。如果您正苦于以下问题:Java XMLHelper.unmarshallToAttributeMap方法的具体用法?Java XMLHelper.unmarshallToAttributeMap怎么用?Java XMLHelper.unmarshallToAttributeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opensaml.xml.util.XMLHelper的用法示例。


在下文中一共展示了XMLHelper.unmarshallToAttributeMap方法的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);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:PolicyUnmarshaller.java

示例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);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:22,代码来源:PolicyReferenceUnmarshaller.java

示例3: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    RequestSecurityTokenResponse rstr = (RequestSecurityTokenResponse) xmlObject;
    if (RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
        rstr.setContext(attribute.getValue());
    } else {
        XMLHelper.unmarshallToAttributeMap(rstr.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:RequestSecurityTokenResponseUnmarshaller.java

示例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);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:AttributedStringUnmarshaller.java

示例5: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Embedded embedded = (Embedded) xmlObject;
    String attrName = attribute.getLocalName();
    if (Embedded.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
        embedded.setValueType(attribute.getValue());
    } else {
        XMLHelper.unmarshallToAttributeMap(embedded.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:EmbeddedUnmarshaller.java

示例6: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Reference reference = (Reference) xmlObject;
    String attrName = attribute.getLocalName();
    if (Reference.URI_ATTRIB_NAME.equals(attrName)) {
        reference.setURI(attribute.getValue());
    } else if (Reference.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
        reference.setValueType(attribute.getValue());
    } else {
        XMLHelper.unmarshallToAttributeMap(reference.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:ReferenceUnmarshaller.java

示例7: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    RelatesTo relatesTo = (RelatesTo) xmlObject;
    
    if (RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
        relatesTo.setRelationshipType(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
    } else {
        XMLHelper.unmarshallToAttributeMap(relatesTo.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:RelatesToUnmarshaller.java

示例8: 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);
    }
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:TimestampUnmarshaller.java

示例9: 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);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:UsernameTokenUnmarshaller.java

示例10: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Claims claims = (Claims) xmlObject;
    if (Claims.DIALECT_ATTRIB_NAME.equals(attribute.getLocalName())) {
        claims.setDialect(attribute.getValue());
    } else {
        XMLHelper.unmarshallToAttributeMap(claims.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:ClaimsUnmarshaller.java

示例11: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
    if (RequestSecurityToken.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
        rst.setContext(attribute.getValue());
    } else {
        XMLHelper.unmarshallToAttributeMap(rst.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:RequestSecurityTokenUnmarshaller.java

示例12: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    AppliesTo at = (AppliesTo) xmlObject;
    XMLHelper.unmarshallToAttributeMap(at.getUnknownAttributes(), attribute);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:AppliesToUnmarshaller.java

示例13: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    PolicyAttachment pa = (PolicyAttachment) xmlObject;
    XMLHelper.unmarshallToAttributeMap(pa.getUnknownAttributes(), attribute);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:PolicyAttachmentUnmarshaller.java

示例14: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Security security = (Security) xmlObject;
    XMLHelper.unmarshallToAttributeMap(security.getUnknownAttributes(), attribute);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:SecurityUnmarshaller.java

示例15: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    AttributedQName attributedQName = (AttributedQName) xmlObject;
    XMLHelper.unmarshallToAttributeMap(attributedQName.getUnknownAttributes(), attribute);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:AttributedQNameUnmarshaller.java


注:本文中的org.opensaml.xml.util.XMLHelper.unmarshallToAttributeMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。