tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote Request.java
Date Wed, 07 Jul 2004 16:29:34 GMT
remm        2004/07/07 09:29:34

  Modified:    coyote/src/java/org/apache/coyote Request.java
  Log:
  - Remove deprecation by using Costin's factory pattern.
  
  Revision  Changes    Path
  1.28      +15 -15    jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- Request.java	24 Feb 2004 08:54:29 -0000	1.27
  +++ Request.java	7 Jul 2004 16:29:34 -0000	1.28
  @@ -87,31 +87,31 @@
   
   
       private int serverPort = -1;
  -    private MessageBytes serverNameMB = new MessageBytes();
  +    private MessageBytes serverNameMB = MessageBytes.newInstance();
   
       private String localHost;
       
       private int remotePort;
       private int localPort;
   
  -    private MessageBytes schemeMB = new MessageBytes();
  +    private MessageBytes schemeMB = MessageBytes.newInstance();
   
  -    private MessageBytes methodMB = new MessageBytes();
  -    private MessageBytes unparsedURIMB = new MessageBytes();
  -    private MessageBytes uriMB = new MessageBytes();
  -    private MessageBytes decodedUriMB = new MessageBytes();
  -    private MessageBytes queryMB = new MessageBytes();
  -    private MessageBytes protoMB = new MessageBytes();
  +    private MessageBytes methodMB = MessageBytes.newInstance();
  +    private MessageBytes unparsedURIMB = MessageBytes.newInstance();
  +    private MessageBytes uriMB = MessageBytes.newInstance();
  +    private MessageBytes decodedUriMB = MessageBytes.newInstance();
  +    private MessageBytes queryMB = MessageBytes.newInstance();
  +    private MessageBytes protoMB = MessageBytes.newInstance();
   
       // remote address/host
  -    private MessageBytes remoteAddrMB = new MessageBytes();
  -    private MessageBytes localNameMB = new MessageBytes();
  -    private MessageBytes remoteHostMB = new MessageBytes();
  -    private MessageBytes localAddrMB = new MessageBytes();
  +    private MessageBytes remoteAddrMB = MessageBytes.newInstance();
  +    private MessageBytes localNameMB = MessageBytes.newInstance();
  +    private MessageBytes remoteHostMB = MessageBytes.newInstance();
  +    private MessageBytes localAddrMB = MessageBytes.newInstance();
        
       private MimeHeaders headers = new MimeHeaders();
   
  -    private MessageBytes instanceId = new MessageBytes();
  +    private MessageBytes instanceId = MessageBytes.newInstance();
   
       /**
        * Notes.
  @@ -143,8 +143,8 @@
       private Cookies cookies = new Cookies(headers);
       private Parameters parameters = new Parameters();
   
  -    private MessageBytes remoteUser=new MessageBytes();
  -    private MessageBytes authType=new MessageBytes();
  +    private MessageBytes remoteUser=MessageBytes.newInstance();
  +    private MessageBytes authType=MessageBytes.newInstance();
       private HashMap attributes=new HashMap();
   
       private Response response;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message