axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/message SOAPFault.java
Date Fri, 02 Jan 2004 16:28:28 GMT
ias         2004/01/02 08:28:28

  Modified:    java/src/org/apache/axis/message SOAPFault.java
  Log:
  Fix for Bug 22981 - The SAAJ 1.2 Preliminary Upgrade
  
  Thanks to Dr. Ahn, Heejune. 
  
  Note:
  -This change passed all-tests.
  
  Revision  Changes    Path
  1.25      +18 -6     ws-axis/java/src/org/apache/axis/message/SOAPFault.java
  
  Index: SOAPFault.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/SOAPFault.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- SOAPFault.java	1 Dec 2003 16:04:18 -0000	1.24
  +++ SOAPFault.java	2 Jan 2004 16:28:28 -0000	1.25
  @@ -85,6 +85,8 @@
   public class SOAPFault extends SOAPBodyElement implements javax.xml.soap.SOAPFault
   {
       protected AxisFault fault;
  +    protected String prefix;
  +    private java.util.Locale locale;
       
       public SOAPFault(String namespace, String localName, String prefix,
                        Attributes attrs, DeserializationContext context)
  @@ -364,20 +366,30 @@
           return detail;
       }
   
  -    public void setFaultCode(Name name) throws SOAPException {
  -        //TODO: Fix this for SAAJ 1.2 Implementation
  +    public void setFaultCode(Name faultCodeQName) throws SOAPException {
  +        String uri = faultCodeQName.getURI();
  +        String local = faultCodeQName.getLocalName();
  +        String prefix = faultCodeQName.getPrefix();
  +
  +        this.prefix = prefix;
  +        QName qname = new QName(uri,local);
  +        fault.setFaultCode(qname);
       }
   
       public Name getFaultCodeAsName() {
  -        return null;  //TODO: Fix this for SAAJ 1.2 Implementation
  +        QName qname = fault.getFaultCode();
  +        String uri = qname.getNamespaceURI();
  +        String local = qname.getLocalPart();
  +        return new PrefixedQName(uri, local, prefix);
       }
   
  -    public void setFaultString(String s, Locale locale) throws SOAPException {
  -        //TODO: Fix this for SAAJ 1.2 Implementation
  +    public void setFaultString(String faultString, Locale locale) throws SOAPException
{
  +        fault.setFaultString(faultString);
  +        this.locale = locale;
       }
   
       public Locale getFaultStringLocale() {
  -        return null;  //TODO: Fix this for SAAJ 1.2 Implementation
  +        return locale;
       }
   
       /**
  
  
  

Mime
View raw message