📄 rstserializer.java
字号:
package edu.virginia.cs.wst.serialization;import java.io.IOException;import javax.xml.namespace.QName;import org.apache.axis.encoding.SerializationContext;import org.xml.sax.Attributes;import edu.virginia.cs.wst.RequestSecurityToken;/** * @author ddelvecc * * For serializing RequestSecurityToken objects into their XML representation. */public class RSTSerializer extends SecurityTokenMessageSerializer { /** * Serialize an element named name, with the indicated attributes * and value. * @param name is the element name * @param attributes are the attributes...serialize is free to add more. * @param value is the value * @param context is the SerializationContext */ public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException { if(!(value instanceof RequestSecurityToken)) throw new IOException("Can't serialize a " + value.getClass().getName() + " with a RSTSerializer."); super.serialize(name, attributes, value, context); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -