rstresponseserializer.java

来自「oasis发布的web services security规范中的ws-trus」· Java 代码 · 共 34 行

JAVA
34
字号
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.RequestSecurityTokenResponse;/** * @author ddelvecc * * For serializing RequestSecurityTokenResponse objects into their XML representation. */public class RSTResponseSerializer 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 RequestSecurityTokenResponse))			throw new IOException("Can't serialize a " + value.getClass().getName() + " with a RSTResponseSerializer.");				super.serialize(name, attributes, value, context);	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?