rstresponsedeserializer.java
来自「oasis发布的web services security规范中的ws-trus」· Java 代码 · 共 41 行
JAVA
41 行
package edu.virginia.cs.wst.serialization;import javax.xml.namespace.QName;import org.apache.axis.encoding.DeserializationContext;import org.apache.axis.encoding.DeserializerImpl;import org.apache.axis.message.SOAPHandler;import org.xml.sax.Attributes;import org.xml.sax.SAXException;import edu.virginia.cs.wst.RequestSecurityTokenResponse;import edu.virginia.cs.wst.TrustConstants;/** * @author ddelvecc * * For deserializing RequestSecurityTokenResponse objects/elements. */public class RSTResponseDeserializer extends DeserializerImpl { public static final QName myTypeQName = TrustConstants.RESPONSE_NAME; private RequestSecurityTokenResponse tokenResponse; public RSTResponseDeserializer() { } public SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException { try { tokenResponse = new RequestSecurityTokenResponse(context.getCurElement().getAsDOM(), context.getEnvelope().getAsDocument()); value = tokenResponse; } catch (Exception e) { throw new SAXException("Exception while processing RequestSecurityTokenResponse startElement: " + e.getMessage()); } return null; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?