1 55 56 package org.jboss.axis.encoding; 57 58 import org.jboss.axis.Constants; 59 import org.jboss.axis.attachments.OctetStream; 60 import org.jboss.axis.encoding.ser.*; 61 import org.jboss.axis.schema.SchemaVersion; 62 import org.jboss.axis.types.HexBinary; 63 import org.jboss.axis.utils.JavaUtils; 64 import org.jboss.axis.utils.Messages; 65 66 import javax.xml.namespace.QName ; 67 import javax.xml.rpc.JAXRPCException ; 68 import javax.xml.rpc.encoding.DeserializerFactory ; 69 70 91 public class DefaultTypeMappingImpl extends TypeMappingImpl 92 { 93 94 private static DefaultTypeMappingImpl tm = null; 95 private boolean doneInit = false; 97 100 public static synchronized TypeMapping getSingleton() 101 { 102 if (tm == null) 103 { 104 tm = new DefaultTypeMappingImpl(); 105 } 106 return tm; 107 } 108 109 protected DefaultTypeMappingImpl() 110 { 111 this(false); 112 } 113 114 protected DefaultTypeMappingImpl(boolean encoded) 115 { 116 super(null); 117 delegate = null; 118 119 133 if (JavaUtils.isAttachmentSupported()) 136 { 137 myRegister(Constants.MIME_PLAINTEXT, java.lang.String .class, 138 new JAFDataHandlerSerializerFactory(java.lang.String .class, 139 Constants.MIME_PLAINTEXT), 140 new JAFDataHandlerDeserializerFactory(java.lang.String .class, 141 Constants.MIME_PLAINTEXT)); 142 143 myRegister(Constants.XSD_HEXBIN, java.lang.String .class, 147 new JAFDataHandlerSerializerFactory(java.lang.String .class, 148 Constants.MIME_PLAINTEXT), 149 new JAFDataHandlerDeserializerFactory(java.lang.String .class, 150 Constants.MIME_PLAINTEXT)); 151 } 152 153 if (!encoded) 154 { 155 registerSOAPTypes(); 156 } 157 158 myRegister(Constants.XSD_HEXBIN, HexBinary.class, 160 new HexSerializerFactory(HexBinary.class, Constants.XSD_HEXBIN), 161 new HexDeserializerFactory(HexBinary.class, Constants.XSD_HEXBIN)); 162 myRegister(Constants.XSD_HEXBIN, byte[].class, 163 new HexSerializerFactory(byte[].class, Constants.XSD_HEXBIN), 164 new HexDeserializerFactory(byte[].class, Constants.XSD_HEXBIN)); 165 166 myRegister(Constants.XSD_BYTE, byte[].class, 180 new ArraySerializerFactory(), 181 null); 182 183 myRegister(Constants.XSD_BASE64, byte[].class, 184 new Base64SerializerFactory(byte[].class, 185 Constants.XSD_BASE64), 186 new Base64DeserializerFactory(byte[].class, 187 Constants.XSD_BASE64)); 188 219 220 myRegisterSimple(Constants.XSD_ANYSIMPLETYPE, java.lang.String .class); 223 224 myRegister(Constants.XSD_UNSIGNEDLONG, java.math.BigInteger .class, 225 new SimpleSerializerFactory(java.math.BigInteger .class, Constants.XSD_UNSIGNEDLONG), 226 new SimpleDeserializerFactory(java.math.BigInteger .class, Constants.XSD_UNSIGNEDLONG)); 227 228 myRegister(Constants.XSD_UNSIGNEDINT, java.lang.Long .class, 229 new SimpleSerializerFactory(java.lang.Long .class, Constants.XSD_UNSIGNEDINT), 230 new SimpleDeserializerFactory(java.lang.Long .class, Constants.XSD_UNSIGNEDINT)); 231 232 myRegister(Constants.XSD_UNSIGNEDSHORT, java.lang.Integer .class, 233 new SimpleSerializerFactory(java.lang.Integer .class, Constants.XSD_UNSIGNEDSHORT), 234 new SimpleDeserializerFactory(java.lang.Integer .class, Constants.XSD_UNSIGNEDSHORT)); 235 236 myRegister(Constants.XSD_UNSIGNEDBYTE, java.lang.Short .class, 237 new SimpleSerializerFactory(java.lang.Short .class, Constants.XSD_UNSIGNEDBYTE), 238 new SimpleDeserializerFactory(java.lang.Short .class, Constants.XSD_UNSIGNEDBYTE)); 239 240 myRegister(Constants.XSD_NONNEGATIVEINTEGER, java.math.BigInteger .class, 241 new SimpleSerializerFactory(java.math.BigInteger .class, Constants.XSD_NONNEGATIVEINTEGER), 242 new SimpleDeserializerFactory(java.math.BigInteger .class, Constants.XSD_NONNEGATIVEINTEGER)); 243 244 myRegister(Constants.XSD_NEGATIVEINTEGER, java.math.BigInteger .class, 245 new SimpleSerializerFactory(java.math.BigInteger .class, Constants.XSD_NEGATIVEINTEGER), 246 new SimpleDeserializerFactory(java.math.BigInteger .class, Constants.XSD_NEGATIVEINTEGER)); 247 248 myRegister(Constants.XSD_POSITIVEINTEGER, java.math.BigInteger .class, 249 new SimpleSerializerFactory(java.math.BigInteger .class, Constants.XSD_POSITIVEINTEGER), 250 new SimpleDeserializerFactory(java.math.BigInteger .class, Constants.XSD_POSITIVEINTEGER)); 251 252 myRegister(Constants.XSD_NONPOSITIVEINTEGER, java.math.BigInteger .class, 253 new SimpleSerializerFactory(java.math.BigInteger .class, Constants.XSD_NONPOSITIVEINTEGER), 254 new SimpleDeserializerFactory(java.math.BigInteger .class, Constants.XSD_NONPOSITIVEINTEGER)); 255 256 Class uriClass = null; 258 try 259 { 260 uriClass = Class.forName("java.net.URI"); 261 myRegisterSimple(Constants.XSD_ANYURI, uriClass); 262 } 263 catch (ClassNotFoundException ignore) 264 { 265 myRegisterSimple(Constants.XSD_ANYURI, java.lang.String .class); 267 } 268 269 myRegisterSimple(Constants.XSD_STRING, java.lang.String .class); 271 myRegisterSimple(Constants.XSD_BOOLEAN, java.lang.Boolean .class); 272 myRegisterSimple(Constants.XSD_DOUBLE, java.lang.Double .class); 273 myRegisterSimple(Constants.XSD_FLOAT, java.lang.Float .class); 274 myRegisterSimple(Constants.XSD_INT, java.lang.Integer .class); 275 myRegisterSimple(Constants.XSD_INTEGER, java.math.BigInteger .class); 276 myRegisterSimple(Constants.XSD_DECIMAL, java.math.BigDecimal .class); 277 myRegisterSimple(Constants.XSD_LONG, java.lang.Long .class); 278 myRegisterSimple(Constants.XSD_SHORT, java.lang.Short .class); 279 myRegisterSimple(Constants.XSD_BYTE, java.lang.Byte .class); 280 281 myRegisterSimple(Constants.XSD_BOOLEAN, boolean.class); 283 myRegisterSimple(Constants.XSD_DOUBLE, double.class); 284 myRegisterSimple(Constants.XSD_FLOAT, float.class); 285 myRegisterSimple(Constants.XSD_INT, int.class); 286 myRegisterSimple(Constants.XSD_LONG, long.class); 287 myRegisterSimple(Constants.XSD_SHORT, short.class); 288 myRegisterSimple(Constants.XSD_BYTE, byte.class); 289 290 myRegister(Constants.XSD_QNAME, 292 javax.xml.namespace.QName .class, 293 new QNameSerializerFactory(javax.xml.namespace.QName .class, Constants.XSD_QNAME), 294 new QNameDeserializerFactory(javax.xml.namespace.QName .class, Constants.XSD_QNAME)); 295 296 myRegister(Constants.XSD_ANYTYPE, java.lang.Object .class, null, null); 298 299 myRegister(Constants.XSD_DATE, org.jboss.axis.types.Time.class, 301 new SimpleSerializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATE), 302 new SimpleDeserializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATE)); 303 304 myRegister(Constants.XSD_DATE, java.sql.Date .class, 307 new DateSerializerFactory(java.sql.Date .class, Constants.XSD_DATE), 308 new DateDeserializerFactory(java.sql.Date .class, Constants.XSD_DATE)); 309 310 myRegister(Constants.XSD_DATE, java.util.Date .class, 311 new DateSerializerFactory(java.util.Date .class, Constants.XSD_DATE), 312 new DateDeserializerFactory(java.util.Date .class, Constants.XSD_DATE)); 313 314 myRegister(Constants.XSD_DATE, java.util.Calendar .class, 315 new DateSerializerFactory(java.util.Calendar .class, Constants.XSD_DATE), 316 new DateDeserializerFactory(java.util.Calendar .class, Constants.XSD_DATE)); 317 318 myRegister(Constants.XSD_DATETIME, org.jboss.axis.types.Time.class, 320 new SimpleSerializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATETIME), 321 new SimpleDeserializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_DATETIME)); 322 323 myRegister(Constants.XSD_TIME, org.jboss.axis.types.Time.class, 325 new SimpleSerializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_TIME), 326 new SimpleDeserializerFactory(org.jboss.axis.types.Time.class, Constants.XSD_TIME)); 327 328 myRegister(Constants.XSD_YEARMONTH, org.jboss.axis.types.YearMonth.class, 330 new SimpleSerializerFactory(org.jboss.axis.types.YearMonth.class, 331 Constants.XSD_YEARMONTH), 332 new SimpleDeserializerFactory(org.jboss.axis.types.YearMonth.class, 333 Constants.XSD_YEARMONTH)); 334 myRegister(Constants.XSD_YEAR, org.jboss.axis.types.Year.class, 335 new SimpleSerializerFactory(org.jboss.axis.types.Year.class, 336 Constants.XSD_YEAR), 337 new SimpleDeserializerFactory(org.jboss.axis.types.Year.class, 338 Constants.XSD_YEAR)); 339 myRegister(Constants.XSD_MONTH, org.jboss.axis.types.Month.class, 340 new SimpleSerializerFactory(org.jboss.axis.types.Month.class, 341 Constants.XSD_MONTH), 342 new SimpleDeserializerFactory(org.jboss.axis.types.Month.class, 343 Constants.XSD_MONTH)); 344 myRegister(Constants.XSD_DAY, org.jboss.axis.types.Day.class, 345 new SimpleSerializerFactory(org.jboss.axis.types.Day.class, 346 Constants.XSD_DAY), 347 new SimpleDeserializerFactory(org.jboss.axis.types.Day.class, 348 Constants.XSD_DAY)); 349 myRegister(Constants.XSD_MONTHDAY, org.jboss.axis.types.MonthDay.class, 350 new SimpleSerializerFactory(org.jboss.axis.types.MonthDay.class, 351 Constants.XSD_MONTHDAY), 352 new SimpleDeserializerFactory(org.jboss.axis.types.MonthDay.class, 353 Constants.XSD_MONTHDAY)); 354 355 myRegister(Constants.SOAP_MAP, java.util.HashMap .class, 358 new MapSerializerFactory(java.util.Map .class, 359 Constants.SOAP_MAP), 360 new MapDeserializerFactory(java.util.HashMap .class, 361 Constants.SOAP_MAP)); 362 myRegister(Constants.SOAP_MAP, java.util.Hashtable .class, 363 new MapSerializerFactory(java.util.Hashtable .class, 364 Constants.SOAP_MAP), 365 null ); 367 myRegister(Constants.SOAP_MAP, java.util.Map .class, 368 new MapSerializerFactory(java.util.Map .class, 369 Constants.SOAP_MAP), 370 null ); 372 373 myRegister(Constants.SOAP_ELEMENT, org.w3c.dom.Element .class, 375 new ElementSerializerFactory(), 376 new ElementDeserializerFactory()); 377 378 myRegister(Constants.SOAP_DOCUMENT, org.w3c.dom.Document .class, 380 new DocumentSerializerFactory(), 381 new DocumentDeserializerFactory()); 382 383 myRegister(Constants.SOAP_VECTOR, java.util.Vector .class, 384 new VectorSerializerFactory(java.util.Vector .class, 385 Constants.SOAP_VECTOR), 386 new VectorDeserializerFactory(java.util.Vector .class, 387 Constants.SOAP_VECTOR)); 388 389 if (JavaUtils.isAttachmentSupported()) 392 { 393 myRegister(Constants.MIME_IMAGE, java.awt.Image .class, 394 new JAFDataHandlerSerializerFactory(java.awt.Image .class, 395 Constants.MIME_IMAGE), 396 new JAFDataHandlerDeserializerFactory(java.awt.Image .class, 397 Constants.MIME_IMAGE)); 398 myRegister(Constants.MIME_MULTIPART, javax.mail.internet.MimeMultipart .class, 399 new JAFDataHandlerSerializerFactory(javax.mail.internet.MimeMultipart .class, 400 Constants.MIME_MULTIPART), 401 new JAFDataHandlerDeserializerFactory(javax.mail.internet.MimeMultipart .class, 402 Constants.MIME_MULTIPART)); 403 myRegister(Constants.MIME_SOURCE, javax.xml.transform.Source .class, 404 new JAFDataHandlerSerializerFactory(javax.xml.transform.Source .class, 405 Constants.MIME_SOURCE), 406 new JAFDataHandlerDeserializerFactory(javax.xml.transform.Source .class, 407 Constants.MIME_SOURCE)); 408 myRegister(Constants.MIME_OCTETSTREAM, OctetStream.class, 409 new JAFDataHandlerSerializerFactory(OctetStream.class, 410 Constants.MIME_OCTETSTREAM), 411 new JAFDataHandlerDeserializerFactory(OctetStream.class, 412 Constants.MIME_OCTETSTREAM)); 413 myRegister(Constants.MIME_DATA_HANDLER, javax.activation.DataHandler .class, 414 new JAFDataHandlerSerializerFactory(), 415 new JAFDataHandlerDeserializerFactory()); 416 } 417 418 myRegister(Constants.XSD_TOKEN, org.jboss.axis.types.Token.class, 420 new SimpleSerializerFactory(org.jboss.axis.types.Token.class, 421 Constants.XSD_TOKEN), 422 new SimpleDeserializerFactory(org.jboss.axis.types.Token.class, 423 Constants.XSD_TOKEN)); 424 425 myRegister(Constants.XSD_NORMALIZEDSTRING, org.jboss.axis.types.NormalizedString.class, 427 new SimpleSerializerFactory(org.jboss.axis.types.NormalizedString.class, 428 Constants.XSD_NORMALIZEDSTRING), 429 new SimpleDeserializerFactory(org.jboss.axis.types.NormalizedString.class, 430 Constants.XSD_NORMALIZEDSTRING)); 431 432 myRegister(Constants.XSD_NAME, org.jboss.axis.types.Name.class, 434 new SimpleSerializerFactory(org.jboss.axis.types.Name.class, 435 Constants.XSD_NAME), 436 new SimpleDeserializerFactory(org.jboss.axis.types.Name.class, 437 Constants.XSD_NAME)); 438 439 myRegister(Constants.XSD_NCNAME, org.jboss.axis.types.NCName.class, 441 new SimpleSerializerFactory(org.jboss.axis.types.NCName.class, 442 Constants.XSD_NCNAME), 443 new SimpleDeserializerFactory(org.jboss.axis.types.NCName.class, 444 Constants.XSD_NCNAME)); 445 446 myRegister(Constants.XSD_ID, org.jboss.axis.types.Id.class, 448 new SimpleSerializerFactory(org.jboss.axis.types.Id.class, 449 Constants.XSD_ID), 450 new SimpleDeserializerFactory(org.jboss.axis.types.Id.class, 451 Constants.XSD_ID)); 452 453 myRegister(Constants.XSD_LANGUAGE, org.jboss.axis.types.Language.class, 455 new SimpleSerializerFactory(org.jboss.axis.types.Language.class, 456 Constants.XSD_LANGUAGE), 457 new SimpleDeserializerFactory(org.jboss.axis.types.Language.class, 458 Constants.XSD_LANGUAGE)); 459 460 myRegister(Constants.XML_LANG, org.jboss.axis.types.Language.class, 462 new SimpleSerializerFactory(org.jboss.axis.types.Language.class, 463 Constants.XML_LANG), 464 new SimpleDeserializerFactory(org.jboss.axis.types.Language.class, 465 Constants.XML_LANG)); 466 467 myRegister(Constants.XSD_NMTOKEN, org.jboss.axis.types.NMToken.class, 469 new SimpleSerializerFactory(org.jboss.axis.types.NMToken.class, 470 Constants.XSD_NMTOKEN), 471 new SimpleDeserializerFactory(org.jboss.axis.types.NMToken.class, 472 Constants.XSD_NMTOKEN)); 473 474 myRegister(Constants.XSD_NMTOKENS, org.jboss.axis.types.NMTokens.class, 476 new SimpleSerializerFactory(org.jboss.axis.types.NMTokens.class, 477 Constants.XSD_NMTOKENS), 478 new SimpleDeserializerFactory(org.jboss.axis.types.NMTokens.class, 479 Constants.XSD_NMTOKENS)); 480 481 myRegister(Constants.XSD_NOTATION, org.jboss.axis.types.Notation.class, 483 new BeanSerializerFactory(org.jboss.axis.types.Notation.class, 484 Constants.XSD_NOTATION), 485 new BeanDeserializerFactory(org.jboss.axis.types.Notation.class, 486 Constants.XSD_NOTATION)); 487 488 myRegister(Constants.XSD_ENTITY, org.jboss.axis.types.Entity.class, 490 new SimpleSerializerFactory(org.jboss.axis.types.Entity.class, 491 Constants.XSD_ENTITY), 492 new SimpleDeserializerFactory(org.jboss.axis.types.Entity.class, 493 Constants.XSD_ENTITY)); 494 495 myRegister(Constants.XSD_ENTITIES, org.jboss.axis.types.Entities.class, 497 new SimpleSerializerFactory(org.jboss.axis.types.Entities.class, 498 Constants.XSD_ENTITIES), 499 new SimpleDeserializerFactory(org.jboss.axis.types.Entities.class, 500 Constants.XSD_ENTITIES)); 501 502 myRegister(Constants.XSD_IDREF, org.jboss.axis.types.IDRef.class, 504 new SimpleSerializerFactory(org.jboss.axis.types.IDRef.class, 505 Constants.XSD_IDREF), 506 new SimpleDeserializerFactory(org.jboss.axis.types.IDRef.class, 507 Constants.XSD_IDREF)); 508 509 myRegister(Constants.XSD_IDREFS, org.jboss.axis.types.IDRefs.class, 511 new SimpleSerializerFactory(org.jboss.axis.types.IDRefs.class, 512 Constants.XSD_IDREFS), 513 new SimpleDeserializerFactory(org.jboss.axis.types.IDRefs.class, 514 Constants.XSD_IDREFS)); 515 516 myRegister(Constants.XSD_DURATION, org.jboss.axis.types.Duration.class, 518 new SimpleSerializerFactory(org.jboss.axis.types.Duration.class, 519 Constants.XSD_DURATION), 520 new SimpleDeserializerFactory(org.jboss.axis.types.Duration.class, 521 Constants.XSD_DURATION)); 522 523 myRegister(Constants.XSD_ANYURI, org.jboss.axis.types.URI.class, 525 new SimpleSerializerFactory(org.jboss.axis.types.URI.class, Constants.XSD_ANYURI), 526 new SimpleDeserializerFactory(org.jboss.axis.types.URI.class, Constants.XSD_ANYURI)); 527 528 myRegister(Constants.XSD_SCHEMA, org.jboss.axis.types.Schema.class, 530 new BeanSerializerFactory(org.jboss.axis.types.Schema.class, 531 Constants.XSD_SCHEMA), 532 new BeanDeserializerFactory(org.jboss.axis.types.Schema.class, 533 Constants.XSD_SCHEMA)); 534 535 myRegister(Constants.SOAP_ARRAY12, java.util.Collection .class, 537 new ArraySerializerFactory(), 538 new ArrayDeserializerFactory()); 539 myRegister(Constants.SOAP_ARRAY12, java.util.ArrayList .class, 541 new ArraySerializerFactory(), 542 new ArrayDeserializerFactory()); 543 544 myRegister(Constants.SOAP_ARRAY12, Object [].class, 545 new ArraySerializerFactory(), 546 new ArrayDeserializerFactory()); 547 548 myRegister(Constants.SOAP_ARRAY, java.util.ArrayList .class, 549 new ArraySerializerFactory(), 550 new ArrayDeserializerFactory()); 551 myRegister(Constants.SOAP_ARRAY, java.util.Collection .class, 559 new ArraySerializerFactory(), 560 new ArrayDeserializerFactory()); 561 562 myRegister(Constants.SOAP_ARRAY, Object [].class, 563 new ArraySerializerFactory(), 564 new ArrayDeserializerFactory()); 565 566 SchemaVersion.SCHEMA_1999.registerSchemaSpecificTypes(this); 570 SchemaVersion.SCHEMA_2000.registerSchemaSpecificTypes(this); 571 SchemaVersion.SCHEMA_2001.registerSchemaSpecificTypes(this); 572 573 if (encoded) 574 { 575 registerSOAPTypes(); 576 } 577 578 doneInit = true; 579 } 580 581 585 private void registerSOAPTypes() 586 { 587 myRegisterSimple(Constants.SOAP_STRING, java.lang.String .class); 590 myRegisterSimple(Constants.SOAP_BOOLEAN, java.lang.Boolean .class); 591 myRegisterSimple(Constants.SOAP_DOUBLE, java.lang.Double .class); 592 myRegisterSimple(Constants.SOAP_FLOAT, java.lang.Float .class); 593 myRegisterSimple(Constants.SOAP_INT, java.lang.Integer .class); 594 myRegisterSimple(Constants.SOAP_INTEGER, java.math.BigInteger .class); 595 myRegisterSimple(Constants.SOAP_DECIMAL, java.math.BigDecimal .class); 596 myRegisterSimple(Constants.SOAP_LONG, java.lang.Long .class); 597 myRegisterSimple(Constants.SOAP_SHORT, java.lang.Short .class); 598 myRegisterSimple(Constants.SOAP_BYTE, java.lang.Byte .class); 599 myRegister(Constants.SOAP_BASE64, byte[].class, 600 new Base64SerializerFactory(byte[].class, 601 Constants.SOAP_BASE64), 602 new Base64DeserializerFactory(byte[].class, 603 Constants.SOAP_BASE64)); 604 myRegister(Constants.SOAP_BASE64BINARY, byte[].class, 605 new Base64SerializerFactory(byte[].class, 606 Constants.SOAP_BASE64), 607 new Base64DeserializerFactory(byte[].class, 608 Constants.SOAP_BASE64)); 609 } 610 611 617 protected void myRegisterSimple(QName xmlType, Class javaType) 618 { 619 SerializerFactory sf = new SimpleSerializerFactory(javaType, xmlType); 620 DeserializerFactory df = null; 621 if (javaType != java.lang.Object .class) 622 { 623 df = new SimpleDeserializerFactory(javaType, xmlType); 624 } 625 626 myRegister(xmlType, javaType, sf, df); 627 } 628 629 641 protected void myRegister(QName xmlType, Class javaType, 642 SerializerFactory sf, DeserializerFactory df) 643 { 644 try 646 { 647 if (xmlType.getNamespaceURI().equals(Constants.URI_DEFAULT_SCHEMA_XSD)) 648 { 649 for (int i = 0; i < Constants.URIS_SCHEMA_XSD.length; i++) 650 { 651 QName qName = new QName (Constants.URIS_SCHEMA_XSD[i], 652 xmlType.getLocalPart()); 653 super.internalRegister(javaType, qName, sf, df); 654 } 655 } 656 else if (xmlType.getNamespaceURI().equals(Constants.URI_DEFAULT_SOAP_ENC)) 657 { 658 for (int i = 0; i < Constants.URIS_SOAP_ENC.length; i++) 659 { 660 QName qName = new QName (Constants.URIS_SOAP_ENC[i], 661 xmlType.getLocalPart()); 662 super.internalRegister(javaType, qName, sf, df); 663 } 664 } 665 super.internalRegister(javaType, xmlType, sf, df); 668 } 669 catch (JAXRPCException e) 670 { 671 } 672 } 673 674 public void register(Class javaType, QName xmlType, 677 javax.xml.rpc.encoding.SerializerFactory sf, 678 javax.xml.rpc.encoding.DeserializerFactory dsf) 679 throws JAXRPCException 680 { 681 682 if (doneInit) 684 { 685 throw new JAXRPCException (Messages.getMessage("fixedTypeMapping")); 686 } 687 else 688 { 689 super.register(javaType, xmlType, sf, dsf); 690 } 691 } 692 693 public void removeSerializer(Class javaType, QName xmlType) 694 throws JAXRPCException 695 { 696 throw new JAXRPCException (Messages.getMessage("fixedTypeMapping")); 697 } 698 699 public void removeDeserializer(Class javaType, QName xmlType) 700 throws JAXRPCException 701 { 702 throw new JAXRPCException (Messages.getMessage("fixedTypeMapping")); 703 } 704 705 public void setSupportedEncodings(String [] namespaceURIs) 706 { 707 } 708 } 709 | Popular Tags |