1 55 package org.jboss.axis.deployment.wsdd; 56 57 import org.jboss.axis.encoding.SerializationContext; 58 import org.w3c.dom.Element ; 59 import org.xml.sax.helpers.AttributesImpl ; 60 61 import javax.xml.namespace.QName ; 62 import java.io.IOException ; 63 64 65 68 public class WSDDTransport 69 extends WSDDTargetedChain 70 { 71 74 public WSDDTransport() 75 { 76 } 77 78 82 public WSDDTransport(Element e) 83 throws WSDDException 84 { 85 super(e); 86 } 87 88 protected QName getElementName() 89 { 90 return WSDDConstants.QNAME_TRANSPORT; 91 } 92 93 96 public void writeToContext(SerializationContext context) 97 throws IOException 98 { 99 AttributesImpl attrs = new AttributesImpl (); 100 QName name = getQName(); 101 if (name != null) 102 { 103 attrs.addAttribute("", ATTR_NAME, ATTR_NAME, 104 "CDATA", context.qName2String(name)); 105 } 106 107 name = getPivotQName(); 108 if (name != null) 109 { 110 attrs.addAttribute("", ATTR_PIVOT, ATTR_PIVOT, 111 "CDATA", context.qName2String(name)); 112 } 113 114 context.startElement(WSDDConstants.QNAME_TRANSPORT, attrs); 115 writeFlowsToContext(context); 116 context.endElement(); 117 } 118 119 public void deployToRegistry(WSDDDeployment registry) 120 { 121 registry.addTransport(this); 122 123 super.deployToRegistry(registry); 124 } 125 } 126 | Popular Tags |