📄 rstresponsedeserializer.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -