You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Kurt Kavanaugh <kk...@swingtide.com> on 2002/08/23 17:06:29 UTC

Call.setProperty() limitation

 

Why the below...?

 

        else if ( name.equals(ATTACHMENT_ENCAPSULATION_FORMAT) ) {

            if (!(value instanceof String)) {

                throw new IllegalArgumentException(

                        JavaUtils.getMessage("badProp00", new String[] {

                        name, "java.lang.String",
value.getClass().getName()}));

            }

            if(!value.equals(ATTACHMENT_ENCAPSULATION_FORMAT_MIME ) && 

               !value.equals(ATTACHMENT_ENCAPSULATION_FORMAT_DIME ))

                throw new IllegalArgumentException(

                        JavaUtils.getMessage("badattachmenttypeerr", new
String[] {

                        (String) value,
ATTACHMENT_ENCAPSULATION_FORMAT_MIME + " "

                        +ATTACHMENT_ENCAPSULATION_FORMAT_DIME  }));

        }

        else {

            throw new IllegalArgumentException(

                    JavaUtils.getMessage("badProp05", name));

        }

 

Which disables the ability to Call.setProperty("myProperty" obj). This
breaks a layer of abstraction I built on top of axis.

 

Thanks for reading and considering.

 

 

Kurt Kavanaugh
Principal Engineer
Swingtide, Inc.
100 Market Street
Portsmouth, NH 03801
kkavanaugh@swingtide.com
www.swingtide.com <http://www.swingtide.com/> 

 


This message and the information contained herein are the proprietary
and confidential property of Swingtide, Inc. and may be privileged.  If
you are not the intended recipient please do not read, copy, disclose or
distribute its contents to any party and notify the sender immediately.