1 57 58 package org.apache.soap; 59 60 import org.apache.soap.util.xml.QName; 61 62 68 public class Constants 69 { 70 public static final String NS_PRE_XMLNS = "xmlns"; 72 public static final String NS_PRE_SOAP = "SOAP"; 73 public static final String NS_PRE_SOAP_ENV = NS_PRE_SOAP + "-ENV"; 74 public static final String NS_PRE_SOAP_ENC = NS_PRE_SOAP + "-ENC"; 75 public static final String NS_PRE_SCHEMA_XSI = "xsi"; 76 public static final String NS_PRE_SCHEMA_XSD = "xsd"; 77 78 public static final String NS_URI_XMLNS = 80 "http://www.w3.org/2000/xmlns/"; 81 public static final String NS_URI_SOAP_ENV = 82 "http://schemas.xmlsoap.org/soap/envelope/"; 83 public static final String NS_URI_SOAP_ENC = 84 "http://schemas.xmlsoap.org/soap/encoding/"; 85 86 public static final String NS_URI_1999_SCHEMA_XSI = 87 "http://www.w3.org/1999/XMLSchema-instance"; 88 public static final String NS_URI_1999_SCHEMA_XSD = 89 "http://www.w3.org/1999/XMLSchema"; 90 public static final String NS_URI_2000_SCHEMA_XSI = 91 "http://www.w3.org/2000/10/XMLSchema-instance"; 92 public static final String NS_URI_2000_SCHEMA_XSD = 93 "http://www.w3.org/2000/10/XMLSchema"; 94 public static final String NS_URI_2001_SCHEMA_XSI = 95 "http://www.w3.org/2001/XMLSchema-instance"; 96 public static final String NS_URI_2001_SCHEMA_XSD = 97 "http://www.w3.org/2001/XMLSchema"; 98 public static final String NS_URI_CURRENT_SCHEMA_XSI = 99 NS_URI_2001_SCHEMA_XSI; 100 public static final String NS_URI_CURRENT_SCHEMA_XSD = 101 NS_URI_2001_SCHEMA_XSD; 102 103 public static final String NS_URI_XML_SOAP = 104 "http://xml.apache.org/xml-soap"; 105 public static final String NS_URI_XML_SOAP_DEPLOYMENT = 106 "http://xml.apache.org/xml-soap/deployment"; 107 public static final String NS_URI_LITERAL_XML = 108 "http://xml.apache.org/xml-soap/literalxml"; 109 public static final String NS_URI_XMI_ENC = 110 "http://www.ibm.com/namespaces/xmi"; 111 112 public static final String HEADER_POST = "POST"; 114 public static final String HEADER_HOST = "Host"; 115 public static final String HEADER_CONTENT_TYPE = "Content-Type"; 116 public static final String HEADER_CONTENT_TYPE_JMS = "ContentType"; 117 public static final String HEADER_CONTENT_LENGTH = "Content-Length"; 118 public static final String HEADER_CONTENT_LOCATION = "Content-Location"; 119 public static final String HEADER_CONTENT_ID = "Content-ID"; 120 public static final String HEADER_SOAP_ACTION = "SOAPAction"; 121 public static final String HEADER_AUTHORIZATION = "Authorization"; 122 public static final String HEADER_PROXY_AUTHORIZATION = 123 "Proxy-Authorization"; 124 125 public static final String HEADERVAL_DEFAULT_CHARSET = "iso-8859-1"; 127 public static final String HEADERVAL_CHARSET_UTF8 = "utf-8"; 128 public static final String HEADERVAL_CONTENT_TYPE = "text/xml"; 129 public static final String HEADERVAL_CONTENT_TYPE_UTF8 = 130 HEADERVAL_CONTENT_TYPE + ";charset=" + HEADERVAL_CHARSET_UTF8; 131 public static final String HEADERVAL_CONTENT_TYPE_MULTIPART_PRIMARY = 132 "multipart"; 133 public static final String HEADERVAL_MULTIPART_CONTENT_SUBTYPE = "related"; 134 public static final String HEADERVAL_CONTENT_TYPE_MULTIPART = 135 HEADERVAL_CONTENT_TYPE_MULTIPART_PRIMARY + '/' + 136 HEADERVAL_MULTIPART_CONTENT_SUBTYPE; 137 138 public static final String XML_DECL = 140 "<?xml version='1.0' encoding='UTF-8'?>\r\n"; 141 142 public static final String ELEM_ENVELOPE = "Envelope"; 144 public static final String ELEM_BODY = "Body"; 145 public static final String ELEM_HEADER = "Header"; 146 public static final String ELEM_FAULT = "Fault"; 147 public static final String ELEM_FAULT_CODE = "faultcode"; 148 public static final String ELEM_FAULT_STRING = "faultstring"; 149 public static final String ELEM_FAULT_ACTOR = "faultactor"; 150 public static final String ELEM_DETAIL = "detail"; 151 public static final String ELEM_FAULT_DETAIL_ENTRY = "detailEntry"; 152 153 public static QName Q_ELEM_ENVELOPE = 155 new QName(NS_URI_SOAP_ENV, ELEM_ENVELOPE); 156 public static QName Q_ELEM_HEADER = 157 new QName(NS_URI_SOAP_ENV, ELEM_HEADER); 158 public static QName Q_ELEM_BODY = 159 new QName(NS_URI_SOAP_ENV, ELEM_BODY); 160 public static QName Q_ELEM_FAULT = 161 new QName(NS_URI_SOAP_ENV, ELEM_FAULT); 162 163 public static final String ATTR_ENCODING_STYLE = "encodingStyle"; 165 public static final String ATTR_MUST_UNDERSTAND = "mustUnderstand"; 166 public static final String ATTR_TYPE = "type"; 167 public static final String ATTR_NULL = "null"; 168 public static final String ATTR_NIL = "nil"; 169 public static final String ATTR_ARRAY_TYPE = "arrayType"; 170 public static final String ATTR_REFERENCE = "href"; 171 public static final String ATTR_ID = "id"; 172 173 public static QName Q_ATTR_MUST_UNDERSTAND = 175 new QName(NS_URI_SOAP_ENV, ATTR_MUST_UNDERSTAND); 176 177 public static String ATTRVAL_TRUE = "true"; 179 180 public static String FAULT_CODE_VERSION_MISMATCH = 182 NS_PRE_SOAP_ENV + ":VersionMismatch"; 183 public static String FAULT_CODE_MUST_UNDERSTAND = 184 NS_PRE_SOAP_ENV + ":MustUnderstand"; 185 public static String FAULT_CODE_CLIENT = NS_PRE_SOAP_ENV + ":Client"; 186 public static String FAULT_CODE_SERVER = NS_PRE_SOAP_ENV + ":Server"; 187 public static String FAULT_CODE_PROTOCOL = NS_PRE_SOAP_ENV + ":Protocol"; 188 189 public static String FAULT_CODE_SERVER_BAD_TARGET_OBJECT_URI = 191 Constants.FAULT_CODE_SERVER + ".BadTargetObjectURI"; 192 193 public static String ERR_MSG_VERSION_MISMATCH = 195 FAULT_CODE_VERSION_MISMATCH + 196 ": Envelope element must " + 197 "be associated with " + 198 "the '" + 199 Constants.NS_URI_SOAP_ENV + 200 "' namespace."; 201 202 public static String BAG_HTTPSERVLET = "HttpServlet" ; 204 public static String BAG_HTTPSESSION = "HttpSession" ; 205 public static String BAG_HTTPSERVLETREQUEST = "HttpServletRequest" ; 206 public static String BAG_HTTPSERVLETRESPONSE = "HttpServletResponse" ; 207 public static String BAG_DEPLOYMENTDESCRIPTOR = "DeploymentDescriptor" ; 208 209 public static final String ENVELOPE_EDITOR_FACTORY = "EnvelopeEditorFactory"; 211 public static final String XML_PARSER = "XMLParser"; 212 public static final String CONFIGFILENAME = "ConfigFile"; 213 214 public static final QName string1999QName = 217 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "string"); 218 public static final QName int1999QName = 219 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "int"); 220 public static final QName decimal1999QName = 221 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "decimal"); 222 public static final QName float1999QName = 223 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "float"); 224 public static final QName double1999QName = 225 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "double"); 226 public static final QName date1999QName = 227 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "date"); 228 public static final QName boolean1999QName = 229 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "boolean"); 230 public static final QName long1999QName = 231 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "long"); 232 public static final QName short1999QName = 233 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "short"); 234 public static final QName byte1999QName = 235 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "byte"); 236 public static final QName hex1999QName = 237 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "hex"); 238 public static final QName qName1999QName = 239 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "QName"); 240 public static final QName timeInst1999QName = 241 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "timeInstant"); 242 public static final QName object1999QName = 243 new QName(Constants.NS_URI_1999_SCHEMA_XSD, "ur-type"); 244 245 public static final QName string2000QName = 246 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "string"); 247 public static final QName int2000QName = 248 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "int"); 249 public static final QName decimal2000QName = 250 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "decimal"); 251 public static final QName float2000QName = 252 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "float"); 253 public static final QName double2000QName = 254 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "double"); 255 public static final QName date2000QName = 256 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "date"); 257 public static final QName boolean2000QName = 258 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "boolean"); 259 public static final QName long2000QName = 260 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "long"); 261 public static final QName short2000QName = 262 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "short"); 263 public static final QName byte2000QName = 264 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "byte"); 265 public static final QName hex2000QName = 266 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "hex"); 267 public static final QName qName2000QName = 268 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "QName"); 269 public static final QName timeInst2000QName = 270 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "timeInstant"); 271 public static final QName object2000QName = 272 new QName(Constants.NS_URI_2000_SCHEMA_XSD, "anyType"); 273 274 public static final QName string2001QName = 275 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "string"); 276 public static final QName int2001QName = 277 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "int"); 278 public static final QName decimal2001QName = 279 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "decimal"); 280 public static final QName float2001QName = 281 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "float"); 282 public static final QName double2001QName = 283 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "double"); 284 public static final QName date2001QName = 285 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "date"); 286 public static final QName boolean2001QName = 287 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "boolean"); 288 public static final QName long2001QName = 289 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "long"); 290 public static final QName short2001QName = 291 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "short"); 292 public static final QName byte2001QName = 293 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "byte"); 294 public static final QName hex2001QName = 295 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "hexBinary"); 296 public static final QName qName2001QName = 297 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "QName"); 298 public static final QName timeInst2001QName = 299 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "dateTime"); 300 public static final QName object2001QName = 301 new QName(Constants.NS_URI_2001_SCHEMA_XSD, "anyType"); 302 } 303 | Popular Tags |