本文整理汇总了Java中org.opensaml.saml1.core.StatusMessage类的典型用法代码示例。如果您正苦于以下问题:Java StatusMessage类的具体用法?Java StatusMessage怎么用?Java StatusMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StatusMessage类属于org.opensaml.saml1.core包,在下文中一共展示了StatusMessage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: processChildElement
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
Status status = (Status) parentSAMLObject;
if (childSAMLObject instanceof StatusCode) {
status.setStatusCode((StatusCode) childSAMLObject);
} else if (childSAMLObject instanceof StatusMessage) {
status.setStatusMessage((StatusMessage) childSAMLObject);
} else if (childSAMLObject instanceof StatusDetail) {
status.setStatusDetail((StatusDetail) childSAMLObject);
} else {
super.processChildElement(parentSAMLObject, childSAMLObject);
}
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:StatusUnmarshaller.java
示例2: newStatus
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
protected final Status newStatus(final QName codeValue, final String statusMessage) {
final Status status = newSamlObject(Status.class);
final StatusCode code = newSamlObject(StatusCode.class);
code.setValue(codeValue);
status.setStatusCode(code);
if (statusMessage != null) {
final StatusMessage message = newSamlObject(StatusMessage.class);
message.setMessage(statusMessage);
status.setStatusMessage(message);
}
return status;
}
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:13,代码来源:AbstractSaml10ResponseView.java
示例3: marshallElementContent
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
StatusMessage statusMessage = (StatusMessage) samlObject;
if (statusMessage.getMessage() != null) {
XMLHelper.appendTextContent(domElement, statusMessage.getMessage());
}
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:9,代码来源:StatusMessageMarshaller.java
示例4: marshallElementContent
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
StatusMessage statusMessage = (StatusMessage) samlObject;
if (statusMessage.getMessage() != null) {
XMLHelper.appendTextContent(domElement,statusMessage.getMessage());
}
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:9,代码来源:StatusMessageMarshaller.java
示例5: StatusMessageTest
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/**
* Constructor
*
*/
public StatusMessageTest() {
super();
contents = "Nibble a Happy Warthog";
singleElementFile = "/data/org/opensaml/saml1/impl/singleStatusMessage.xml";
singleElementOptionalAttributesFile = "/data/org/opensaml/saml1/impl/FullStatusMessage.xml";
qname = new QName(SAMLConstants.SAML10P_NS, StatusMessage.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML1P_PREFIX);
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:14,代码来源:StatusMessageTest.java
示例6: testSingleElementOptionalAttributesMarshall
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementOptionalAttributesMarshall() {
StatusMessage statusMessage = (StatusMessage) buildXMLObject(qname);
statusMessage.setMessage(contents);
assertEquals(expectedOptionalAttributesDOM, statusMessage);
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:9,代码来源:StatusMessageTest.java
示例7: testChildElementsMarshall
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public void testChildElementsMarshall() {
Status status = (Status) buildXMLObject(qname);
StatusCode statusCode = (StatusCode) buildXMLObject(StatusCode.DEFAULT_ELEMENT_NAME);
statusCode.setValue(StatusCode.SUCCESS);
status.setStatusCode(statusCode);
StatusMessage statusMessage = (StatusMessage) buildXMLObject(StatusMessage.DEFAULT_ELEMENT_NAME);
status.setStatusMessage(statusMessage);
assertEquals(expectedChildElementsDOM, status);
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:15,代码来源:StatusTest.java
示例8: buildObject
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public StatusMessage buildObject() {
return buildObject(SAMLConstants.SAML10P_NS, StatusMessage.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML1P_PREFIX);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:StatusMessageBuilder.java
示例9: getStatusMessage
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public StatusMessage getStatusMessage() {
return statusMessage;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:StatusImpl.java
示例10: setStatusMessage
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public void setStatusMessage(StatusMessage statusMessage) throws IllegalArgumentException {
this.statusMessage = prepareForAssignment(this.statusMessage, statusMessage);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:StatusImpl.java
示例11: processElementContent
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processElementContent(XMLObject samlObject, String elementContent) {
StatusMessage statusMessage = (StatusMessage) samlObject;
statusMessage.setMessage(elementContent);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:StatusMessageUnmarshaller.java
示例12: StatusMessageMarshaller
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/**
* Constructor
*/
public StatusMessageMarshaller() {
super(SAMLConstants.SAML10P_NS, StatusMessage.DEFAULT_ELEMENT_LOCAL_NAME);
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:7,代码来源:StatusMessageMarshaller.java
示例13: StatusMessageUnmarshaller
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** Constructor */
public StatusMessageUnmarshaller() {
super(SAMLConstants.SAML10P_NS, StatusMessage.DEFAULT_ELEMENT_LOCAL_NAME);
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:5,代码来源:StatusMessageUnmarshaller.java
示例14: testSingleElementUnmarshall
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementUnmarshall() {
StatusMessage statusMessage = (StatusMessage) unmarshallElement(singleElementFile);
assertNull("Contents", statusMessage.getMessage());
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:7,代码来源:StatusMessageTest.java
示例15: testSingleElementOptionalAttributesUnmarshall
import org.opensaml.saml1.core.StatusMessage; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementOptionalAttributesUnmarshall() {
StatusMessage statusMessage = (StatusMessage) unmarshallElement(singleElementOptionalAttributesFile);
assertEquals("Contents", contents, statusMessage.getMessage());
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:7,代码来源:StatusMessageTest.java
注:本文中的org.opensaml.saml1.core.StatusMessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论