axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPTransport.java
Date Mon, 03 Jun 2002 22:29:25 GMT
rsitze      2002/06/03 15:29:25

  Modified:    java/src/org/apache/axis/transport/http HTTPTransport.java
  Log:
  String literal to constant
  
  Revision  Changes    Path
  1.18      +5 -3      xml-axis/java/src/org/apache/axis/transport/http/HTTPTransport.java
  
  Index: HTTPTransport.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPTransport.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- HTTPTransport.java	30 May 2002 23:46:02 -0000	1.17
  +++ HTTPTransport.java	3 Jun 2002 22:29:25 -0000	1.18
  @@ -73,17 +73,19 @@
    */
   public class HTTPTransport extends Transport
   {
  +    public static final String DEFAULT_TRANSPORT_NAME = "http";
  +    
       /**
        * HTTP properties
        */
  -    static public String URL = MessageContext.TRANS_URL;
  +    public static final String URL = MessageContext.TRANS_URL;
   
       private String cookie;
       private String cookie2;
       private String action;
       
       public HTTPTransport () {
  -        transportName = "http";
  +        transportName = DEFAULT_TRANSPORT_NAME;
       }
       
       /**
  @@ -91,7 +93,7 @@
        */
       public HTTPTransport (String url, String action)
       {
  -        transportName = "http";
  +        transportName = DEFAULT_TRANSPORT_NAME;
           this.url = url;
           this.action = action;
       }
  
  
  

Mime
View raw message