1 28 29 package com.caucho.soap.wsdl; 30 31 import javax.xml.bind.annotation.XmlAccessType; 32 import javax.xml.bind.annotation.XmlAccessorType; 33 import javax.xml.bind.annotation.XmlAttribute; 34 import javax.xml.bind.annotation.XmlElement; 35 import javax.xml.bind.annotation.XmlRootElement; 36 import javax.xml.namespace.QName ; 37 import java.util.ArrayList ; 38 import java.util.List ; 39 40 43 @XmlAccessorType(XmlAccessType.FIELD) 44 @XmlRootElement(name="header", 45 namespace="http://schemas.xmlsoap.org/wsdl/soap/") 46 public class SOAPHeader extends WSDLExtensibilityElement { 47 @XmlElement(name="headerfault", 48 namespace="http://schemas.xmlsoap.org/wsdl/soap/") 49 private List <SOAPHeaderFault> _faults; 50 51 @XmlAttribute(required=true, name="message") 52 private QName _message; 53 54 @XmlAttribute(required=true, name="part") 55 private String _part; 56 57 @XmlAttribute(required=true, name="use") 58 private SOAPUseChoice _use; 59 60 @XmlAttribute(name="encodingStyle") 61 private List <String > _encodingStyle; 62 63 @XmlAttribute(name="namespace") 64 private String _namespace; 65 66 public void addFault(SOAPHeaderFault fault) 67 { 68 if (_faults == null) 69 _faults = new ArrayList <SOAPHeaderFault>(); 70 71 _faults.add(fault); 72 } 73 74 public List <SOAPHeaderFault> getFaults() 75 { 76 if (_faults == null) 77 _faults = new ArrayList <SOAPHeaderFault>(); 78 79 return _faults; 80 } 81 82 85 public void setMessage(QName message) 86 { 87 _message = message; 88 } 89 90 93 public QName getMessage() 94 { 95 return _message; 96 } 97 98 101 public void setPart(String part) 102 { 103 _part = part; 104 } 105 106 109 public String getPart() 110 { 111 return _part; 112 } 113 114 public void addEncodingStyle(String encodingStyle) 115 { 116 if (_encodingStyle == null) 117 _encodingStyle = new ArrayList <String >(); 118 119 _encodingStyle.add(encodingStyle); 120 } 121 122 public List <String > getEncodingStyle() 123 { 124 if (_encodingStyle == null) 125 _encodingStyle = new ArrayList <String >(); 126 127 return _encodingStyle; 128 } 129 130 public void setNamespace(String namespace) 131 { 132 _namespace = namespace; 133 } 134 135 public String getNamespace() 136 { 137 return _namespace; 138 } 139 140 public void setUse(SOAPUseChoice use) 141 { 142 _use = use; 143 } 144 145 public SOAPUseChoice getUse() 146 { 147 return _use; 148 } 149 } 150 | Popular Tags |