axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/utils resources.properties
Date Tue, 13 Nov 2001 14:56:05 GMT
gdaniels    01/11/13 06:56:05

  Modified:    java/src/org/apache/axis/deployment/wsdd WSDDChain.java
                        WSDDElement.java WSDDGlobalConfiguration.java
                        WSDDProvider.java WSDDService.java
                        WSDDTypeMapping.java
               java/src/org/apache/axis/deployment/wsdd/providers
                        WSDDHandlerProvider.java
               java/src/org/apache/axis/utils resources.properties
  Log:
  Internationalize WSDD package.
  
  Revision  Changes    Path
  1.18      +4 -3      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDChain.java
  
  Index: WSDDChain.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDChain.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WSDDChain.java	2001/11/12 16:04:06	1.17
  +++ WSDDChain.java	2001/11/13 14:56:05	1.18
  @@ -56,6 +56,7 @@
   
   import org.apache.axis.Chain;
   import org.apache.axis.Handler;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.encoding.SerializationContext;
   import org.apache.axis.deployment.DeploymentRegistry;
   import org.w3c.dom.Document;
  @@ -116,9 +117,9 @@
           }
   
           if (handlers.isEmpty())
  -            throw new WSDDException("No handlers in " + 
  -                                    getElementName().getLocalPart() +
  -                                    " '" + getQName() + "'");
  +            throw new WSDDException(JavaUtils.getMessage("noHandlersInChain00", 
  +                                    getElementName().getLocalPart(),
  +                                    getQName().toString()));
       }
       
       protected QName getElementName()
  
  
  
  1.11      +4 -3      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDElement.java
  
  Index: WSDDElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDElement.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- WSDDElement.java	2001/11/09 18:35:58	1.10
  +++ WSDDElement.java	2001/11/13 14:56:05	1.11
  @@ -55,6 +55,7 @@
   package org.apache.axis.deployment.wsdd;
   
   import org.apache.axis.utils.XMLUtils;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.encoding.SerializationContext;
   import org.w3c.dom.Document;
   import org.w3c.dom.Element;
  @@ -115,9 +116,9 @@
                   || (null == e.getLocalName())
                   ||!e.getNamespaceURI().equals(name.getNamespaceURI())
                   ||!e.getLocalName().equals(name.getLocalPart())) {
  -            throw new WSDDException("Invalid WSDD Element '" + 
  -                                    e.getLocalName() + "' (wanted '" +
  -                                    name.getLocalPart() + "')");
  +            throw new WSDDException(JavaUtils.getMessage("invalidWSDD00",
  +                                    e.getLocalName(),
  +                                    name.getLocalPart()));
           }
       }
   
  
  
  
  1.16      +2 -1      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDGlobalConfiguration.java
  
  Index: WSDDGlobalConfiguration.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDGlobalConfiguration.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- WSDDGlobalConfiguration.java	2001/11/12 16:04:06	1.15
  +++ WSDDGlobalConfiguration.java	2001/11/13 14:56:05	1.16
  @@ -55,6 +55,7 @@
   package org.apache.axis.deployment.wsdd;
   
   import org.apache.axis.Handler;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.encoding.SerializationContext;
   import org.apache.axis.deployment.DeploymentRegistry;
   import org.w3c.dom.Document;
  @@ -158,7 +159,7 @@
        */
       public void setType(String type) throws WSDDException
       {
  -        throw new WSDDException("GlobalConfiguration disallows setting of Type");
  +        throw new WSDDException(JavaUtils.getMessage("noTypeOnGlobalConfig00"));
       }
   
       /**
  
  
  
  1.13      +4 -3      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDProvider.java
  
  Index: WSDDProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDProvider.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- WSDDProvider.java	2001/11/07 21:04:20	1.12
  +++ WSDDProvider.java	2001/11/13 14:56:05	1.13
  @@ -55,6 +55,7 @@
   package org.apache.axis.deployment.wsdd;
   
   import org.apache.axis.Handler;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.deployment.DeploymentRegistry;
   import org.apache.axis.deployment.wsdd.providers.WSDDBsfProvider;
   import org.apache.axis.deployment.wsdd.providers.WSDDComProvider;
  @@ -137,12 +138,12 @@
           throws Exception
       {
           if (providerType == null)
  -            throw new WSDDException("Null provider type passed to WSDDProvider!");
  +            throw new WSDDException(JavaUtils.getMessage("nullProvider00"));
           
           WSDDProvider provider = (WSDDProvider)providers.get(providerType);
           if (provider == null) {
  -            throw new WSDDException("No provider type matches QName '" +
  -                                    providerType + "'");
  +            throw new WSDDException(JavaUtils.getMessage("noMatchingProvider00",
  +                                    providerType.toString()));
           }
           
           return provider.newProviderInstance(service, registry);
  
  
  
  1.23      +3 -1      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDService.java
  
  Index: WSDDService.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDService.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- WSDDService.java	2001/11/12 16:04:06	1.22
  +++ WSDDService.java	2001/11/13 14:56:05	1.23
  @@ -58,6 +58,7 @@
   import org.apache.axis.TargetedChain;
   import org.apache.axis.FaultableHandler;
   import org.apache.axis.utils.XMLUtils;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.handlers.soap.SOAPService;
   import org.apache.axis.encoding.*;
   import org.apache.axis.deployment.DeploymentRegistry;
  @@ -214,7 +215,8 @@
                                                                  this,
                                                                  registry);
               if (providerHandler == null)
  -                throw new WSDDException("Couldn't construct provider.");
  +                throw new WSDDException(
  +                        JavaUtils.getMessage("couldntConstructProvider00"));
               
               service.setPivotHandler(providerHandler);
           }
  
  
  
  1.14      +6 -4      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
  
  Index: WSDDTypeMapping.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- WSDDTypeMapping.java	2001/11/07 21:04:20	1.13
  +++ WSDDTypeMapping.java	2001/11/13 14:56:05	1.14
  @@ -58,6 +58,7 @@
   import org.w3c.dom.Element;
   import org.w3c.dom.Node;
   import org.apache.axis.utils.XMLUtils;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.encoding.SerializationContext;
   import org.xml.sax.helpers.AttributesImpl;
   
  @@ -194,15 +195,16 @@
       {
           if (typeQName != null) {
               if (!WSDDConstants.WSDD_JAVA.equals(typeQName.getNamespaceURI())) {
  -                throw new ClassNotFoundException("Found languageSpecificType namespace
'" +
  -                    typeQName.getNamespaceURI() + "', expected '" +
  -                    WSDDConstants.WSDD_JAVA + "'");
  +                throw new ClassNotFoundException(JavaUtils.
  +                             getMessage("badTypeNamespace00",
  +                                        typeQName.getNamespaceURI(),
  +                                        WSDDConstants.WSDD_JAVA));
               }
   
               return Class.forName(typeQName.getLocalPart());
           }
           
  -        throw new ClassNotFoundException("No type QName for mapping?");
  +        throw new ClassNotFoundException(JavaUtils.getMessage("noTypeQName00"));
       }
   
       /**
  
  
  
  1.3       +6 -3      xml-axis/java/src/org/apache/axis/deployment/wsdd/providers/WSDDHandlerProvider.java
  
  Index: WSDDHandlerProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/providers/WSDDHandlerProvider.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WSDDHandlerProvider.java	2001/11/07 21:04:21	1.2
  +++ WSDDHandlerProvider.java	2001/11/13 14:56:05	1.3
  @@ -55,6 +55,7 @@
   package org.apache.axis.deployment.wsdd.providers;
   
   import org.apache.axis.Handler;
  +import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.deployment.DeploymentException;
   import org.apache.axis.deployment.DeploymentRegistry;
   import org.apache.axis.deployment.wsdd.WSDDProvider;
  @@ -76,14 +77,16 @@
       {
           String providerClass = service.getParameter("handlerClass");
           if (providerClass == null) {
  -            throw new DeploymentException("No provider Handler class specified!");
  +            throw new DeploymentException(JavaUtils.
  +                                            getMessage("noHandlerClass00"));
           }
           
           Class _class = Class.forName(providerClass);
           
           if (!(Handler.class.isAssignableFrom(_class))) {
  -            throw new DeploymentException("Class " + _class.getName() +
  -                " is not a Handler!");
  +            throw new DeploymentException(JavaUtils.
  +                                            getMessage("badHandlerClass00",
  +                                                       _class.getName()));
           }
   
           return (Handler)_class.newInstance();
  
  
  
  1.13      +19 -0     xml-axis/java/src/org/apache/axis/utils/resources.properties
  
  Index: resources.properties
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/resources.properties,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- resources.properties	2001/11/12 16:43:11	1.12
  +++ resources.properties	2001/11/13 14:56:05	1.13
  @@ -26,6 +26,7 @@
   badDate00=Invalid date
   badDateTime00=Invalid date/time
   badElem00=Invalid element in {0} - {1}
  +badHandlerClass00=Class ''{0}'' is not a Handler (can't be used in HandlerProvider)!
   badInteger00=Explicit array length is not a valid integer ''{0}''.
   
   # NOTE:  in badMsgCtx00, do not translate "--messageContext", "--skeleton"
  @@ -46,6 +47,7 @@
   badTag00=Bad envelope tag:  {0}
   badTime00=Invalid time
   badTimezone00=Invalid timezone
  +badTypeNamespace00=Found languageSpecificType namespace ''{0}'', expected ''{1}''
   badWSDDElem00=Invalid WSDD Element
   beanSerConfigFail00=Exception configuring bean serialization for {0}
   bodyElems00=There are {0} body elements.
  @@ -88,6 +90,7 @@
   convert00=Trying to convert {0} to {1}
   copy00=copy {0} {1}
   couldntCall00=Could not get a call
  +couldntConstructProvider00=Service couldn't construct provider!
   
   # NOTE:  in createdHTTP entries, do not translate "HTTP"
   createdHTTP00=Created an insecure HTTP connection
  @@ -194,6 +197,8 @@
   internalError00=Internal error
   internalError01=Internal server error
   
  +invalidWSDD00=Invalid WSDD element ''{0}'' (wanted ''{1}'')
  +
   # NOTE:  in invokeGet00, do no translate "GET"
   invokeGet00=invoking via GET
   
  @@ -268,6 +273,10 @@
   
   noHandler02=Could not find registered handler ''{0}''
   
  +noHandlerClass00=No HandlerProvider ''handlerClass'' option was specified!
  +
  +noHandlersInChain00=No handlers in {0} ''{1}''
  +
   noHeader00=no {0} header!
   
   # NOTE:  in noInstructions00, do not translate "SOAP"
  @@ -277,6 +286,9 @@
   noJSSE00=SSL feature disallowed:  JSSE files not installed or present in classpath
   
   noMap00={0}:  {1} is not a map
  +
  +noMatchingProvider00=No provider type matches QName ''{0}''
  +
   noMethod00=Method not found\nMethod name = {0}\nService name = {1}
   noMethod01=No method!
   noMultiArray00=Multidimensional arrays are not supported ''{0}''.
  @@ -334,9 +346,13 @@
   # NOTE:  in noType01, do not translate "vector"
   noType01=No type attribute for vector!
   
  +noTypeQName00=No type QName for mapping!
  +
   notAuth00=User ''{0}'' not authorized to ''{1}''
   notImplemented00={0} is not implemented!
   
  +noTypeOnGlobalConfig00=GlobalConfiguration does not allow the ''type'' attribute!
  +
   # NOTE:  in noUnderstand00, do not translate "MustUnderstand"
   noUnderstand00=Did not understand "MustUnderstand" header(s)!
   
  @@ -356,6 +372,9 @@
   
   nullHandler00={0}:  Null handler;
   nullParent00=null parent!
  +
  +nullProvider00=Null provider type passed to WSDDProvider!
  +
   nullResponse00=Null response message!
   nullTable00=null table??
   oddDigits00=Odd number of digits in hex string
  
  
  

Mime
View raw message