1 16 package org.apache.axis.deployment.wsdd; 17 18 import org.apache.axis.encoding.SerializationContext; 19 import org.w3c.dom.Element ; 20 import org.xml.sax.helpers.AttributesImpl ; 21 22 import javax.xml.namespace.QName ; 23 import java.io.IOException ; 24 25 26 29 public class WSDDTransport 30 extends WSDDTargetedChain 31 { 32 35 public WSDDTransport() 36 { 37 } 38 39 44 public WSDDTransport(Element e) 45 throws WSDDException 46 { 47 super(e); 48 } 49 50 protected QName getElementName() { 51 return WSDDConstants.QNAME_TRANSPORT; 52 } 53 54 57 public void writeToContext(SerializationContext context) 58 throws IOException { 59 AttributesImpl attrs = new AttributesImpl (); 60 QName name = getQName(); 61 if (name != null) { 62 attrs.addAttribute("", ATTR_NAME, ATTR_NAME, 63 "CDATA", context.qName2String(name)); 64 } 65 66 name = getPivotQName(); 67 if (name != null) { 68 attrs.addAttribute("", ATTR_PIVOT, ATTR_PIVOT, 69 "CDATA", context.qName2String(name)); 70 } 71 72 context.startElement(WSDDConstants.QNAME_TRANSPORT, attrs); 73 writeFlowsToContext(context); 74 writeParamsToContext(context); 75 context.endElement(); 76 } 77 78 public void deployToRegistry(WSDDDeployment registry) 79 { 80 registry.addTransport(this); 81 82 super.deployToRegistry(registry); 83 } 84 } 85 | Popular Tags |