2. Araxis Merge File Comparison Report

Produced by Araxis Merge on Mon Mar 6 16:03:36 2006 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

2.1 Files compared

# Location File Last Modified
1 C:\Merge Test Files\4.0.6\catalina\src\share\org\apache\catalina\connector\http HttpConnector.java Tue Oct 8 15:15:34 2002 UTC
2 C:\Merge Test Files\4.1.18\catalina\src\share\org\apache\catalina\connector\http HttpConnector.java Thu Dec 19 13:49:44 2002 UTC

2.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 18 1194
Changed 8 72
Inserted 9 34
Removed 0 0

2.3 Comparison options

Whitespace All differences in whitespace within lines are ignored
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

2.4 Active regular expressions

No regular expressions were active.

2.5 Comparison detail

1   /*   1   /*
2     *   $Header:   /home/cvs/ jakarta-to mcat-4.0/c atalina/sr c/share/or g/apache/c atalina/co nnector/ht tp/HttpCon nector.jav a,v   1. 2 4 .2.2   2002/0 1/ 3
1   23 :1 3: 5
3   c r aig m cc   Exp   $
  2     *   $Header:   /home/cvs/ jakarta-to mcat-4.0/c atalina/sr c/share/or g/apache/c atalina/co nnector/ht tp/HttpCon nector.jav a,v   1. 3 4
  2002/0
3 / 1 8   07 :1
5 : 3 9   r em m
  Exp   $
3     *   $Revision:   1. 2 4 .2.2   $   3     *   $Revision:   1. 3 4
  $
4     *   $Date:   2002/0 1/ 3
1   23 :1 3: 5
3
  $
  4     *   $Date:   2002/0
3 / 1 8   07 :1
5 : 3 9   $
5    *   5    *
6    * ======= ========== ========== ========== ========== ========== ========== =   6    * ======= ========== ========== ========== ========== ========== ========== =
7    *   7    *
8    * The Apa che Softwa re License , Version  1.1   8    * The Apa che Softwa re License , Version  1.1
9    *   9    *
10    * Copyrig ht (c) 199 9 The Apac he Softwar e Foundati on.  All r ights   10    * Copyrig ht (c) 199 9 The Apac he Softwar e Foundati on.  All r ights
11    * reserve d.   11    * reserve d.
12    *   12    *
13    * Redistr ibution an d use in s ource and  binary for ms, with o r without   13    * Redistr ibution an d use in s ource and  binary for ms, with o r without
14    * modific ation, are  permitted  provided  that the f ollowing c onditions   14    * modific ation, are  permitted  provided  that the f ollowing c onditions
15    * are met :   15    * are met :
16    *   16    *
17    * 1. Redi stribution s of sourc e code mus t retain t he above c opyright   17    * 1. Redi stribution s of sourc e code mus t retain t he above c opyright
18    *    noti ce, this l ist of con ditions an d the foll owing disc laimer.   18    *    noti ce, this l ist of con ditions an d the foll owing disc laimer.
19    *   19    *
20    * 2. Redi stribution s in binar y form mus t reproduc e the abov e copyrigh t   20    * 2. Redi stribution s in binar y form mus t reproduc e the abov e copyrigh t
21    *    noti ce, this l ist of con ditions an d the foll owing disc laimer in   21    *    noti ce, this l ist of con ditions an d the foll owing disc laimer in
22    *    the  documentat ion and/or  other mat erials pro vided with  the   22    *    the  documentat ion and/or  other mat erials pro vided with  the
23    *    dist ribution.   23    *    dist ribution.
24    *   24    *
25    * 3. The  end-user d ocumentati on include d with the  redistrib ution, if   25    * 3. The  end-user d ocumentati on include d with the  redistrib ution, if
26    *    any,  must incl ude the fo llowing ac knowlegeme nt:   26    *    any,  must incl ude the fo llowing ac knowlegeme nt:
27    *       " This produ ct include s software  developed  by the   27    *       " This produ ct include s software  developed  by the
28    *         Apache Sof tware Foun dation (ht tp://www.a pache.org/ )."   28    *         Apache Sof tware Foun dation (ht tp://www.a pache.org/ )."
29    *    Alte rnately, t his acknow legement m ay appear  in the sof tware itse lf,   29    *    Alte rnately, t his acknow legement m ay appear  in the sof tware itse lf,
30    *    if a nd whereve r such thi rd-party a cknowlegem ents norma lly appear .   30    *    if a nd whereve r such thi rd-party a cknowlegem ents norma lly appear .
31    *   31    *
32    * 4. The  names "The  Jakarta P roject", " Tomcat", a nd "Apache  Software   32    * 4. The  names "The  Jakarta P roject", " Tomcat", a nd "Apache  Software
33    *    Foun dation" mu st not be  used to en dorse or p romote pro ducts deri ved   33    *    Foun dation" mu st not be  used to en dorse or p romote pro ducts deri ved
34    *    from  this soft ware witho ut prior w ritten per mission. F or written   34    *    from  this soft ware witho ut prior w ritten per mission. F or written
35    *    perm ission, pl ease conta ct apache@ apache.org .   35    *    perm ission, pl ease conta ct apache@ apache.org .
36    *   36    *
37    * 5. Prod ucts deriv ed from th is softwar e may not  be called  "Apache"   37    * 5. Prod ucts deriv ed from th is softwar e may not  be called  "Apache"
38    *    nor  may "Apach e" appear  in their n ames witho ut prior w ritten   38    *    nor  may "Apach e" appear  in their n ames witho ut prior w ritten
39    *    perm ission of  the Apache  Group.   39    *    perm ission of  the Apache  Group.
40    *   40    *
41    * THIS SO FTWARE IS  PROVIDED ` `AS IS'' A ND ANY EXP RESSED OR  IMPLIED   41    * THIS SO FTWARE IS  PROVIDED ` `AS IS'' A ND ANY EXP RESSED OR  IMPLIED
42    * WARRANT IES, INCLU DING, BUT  NOT LIMITE D TO, THE  IMPLIED WA RRANTIES   42    * WARRANT IES, INCLU DING, BUT  NOT LIMITE D TO, THE  IMPLIED WA RRANTIES
43    * OF MERC HANTABILIT Y AND FITN ESS FOR A  PARTICULAR  PURPOSE A RE   43    * OF MERC HANTABILIT Y AND FITN ESS FOR A  PARTICULAR  PURPOSE A RE
44    * DISCLAI MED.  IN N O EVENT SH ALL THE AP ACHE SOFTW ARE FOUNDA TION OR   44    * DISCLAI MED.  IN N O EVENT SH ALL THE AP ACHE SOFTW ARE FOUNDA TION OR
45    * ITS CON TRIBUTORS  BE LIABLE  FOR ANY DI RECT, INDI RECT, INCI DENTAL,   45    * ITS CON TRIBUTORS  BE LIABLE  FOR ANY DI RECT, INDI RECT, INCI DENTAL,
46    * SPECIAL , EXEMPLAR Y, OR CONS EQUENTIAL  DAMAGES (I NCLUDING,  BUT NOT   46    * SPECIAL , EXEMPLAR Y, OR CONS EQUENTIAL  DAMAGES (I NCLUDING,  BUT NOT
47    * LIMITED  TO, PROCU REMENT OF  SUBSTITUTE  GOODS OR  SERVICES;  LOSS OF   47    * LIMITED  TO, PROCU REMENT OF  SUBSTITUTE  GOODS OR  SERVICES;  LOSS OF
48    * USE, DA TA, OR PRO FITS; OR B USINESS IN TERRUPTION ) HOWEVER  CAUSED AND   48    * USE, DA TA, OR PRO FITS; OR B USINESS IN TERRUPTION ) HOWEVER  CAUSED AND
49    * ON ANY  THEORY OF  LIABILITY,  WHETHER I N CONTRACT , STRICT L IABILITY,   49    * ON ANY  THEORY OF  LIABILITY,  WHETHER I N CONTRACT , STRICT L IABILITY,
50    * OR TORT  (INCLUDIN G NEGLIGEN CE OR OTHE RWISE) ARI SING IN AN Y WAY OUT   50    * OR TORT  (INCLUDIN G NEGLIGEN CE OR OTHE RWISE) ARI SING IN AN Y WAY OUT
51    * OF THE  USE OF THI S SOFTWARE , EVEN IF  ADVISED OF  THE POSSI BILITY OF   51    * OF THE  USE OF THI S SOFTWARE , EVEN IF  ADVISED OF  THE POSSI BILITY OF
52    * SUCH DA MAGE.   52    * SUCH DA MAGE.
53    * ======= ========== ========== ========== ========== ========== ========== =   53    * ======= ========== ========== ========== ========== ========== ========== =
54    *   54    *
55    * This so ftware con sists of v oluntary c ontributio ns made by  many   55    * This so ftware con sists of v oluntary c ontributio ns made by  many
56    * individ uals on be half of th e Apache S oftware Fo undation.   For more   56    * individ uals on be half of th e Apache S oftware Fo undation.   For more
57    * informa tion on th e Apache S oftware Fo undation,  please see   57    * informa tion on th e Apache S oftware Fo undation,  please see
58    * <http:/ /www.apach e.org/>.   58    * <http:/ /www.apach e.org/>.
59    *   59    *
60    * [Additi onal notic es, if req uired by p rior licen sing condi tions]   60    * [Additi onal notic es, if req uired by p rior licen sing condi tions]
61    *   61    *
62    */   62    */
63     63  
64     64  
65   package or g.apache.c atalina.co nnector.ht tp;   65   package or g.apache.c atalina.co nnector.ht tp;
66     66  
67     67  
68   import jav a.io.IOExc eption;   68   import jav a.io.IOExc eption;
69   import jav a.net.Bind Exception;   69   import jav a.net.Bind Exception;
70   import jav a.net.Inet Address;   70   import jav a.net.Inet Address;
71   import jav a.net.Serv erSocket;   71   import jav a.net.Serv erSocket;
72   import jav a.net.Sock et;   72   import jav a.net.Sock et;
    73   import jav a.net.Unkn ownHostExc eption;
73   import jav a.security .AccessCon trolExcept ion;   74   import jav a.security .AccessCon trolExcept ion;
74   import jav a.util.Sta ck;   75   import jav a.util.Sta ck;
75   import jav a.util.Vec tor;   76   import jav a.util.Vec tor;
76   import jav a.util.Enu meration;   77   import jav a.util.Enu meration;
    78   import jav a.security .KeyStoreE xception;
    79   import jav a.security .NoSuchAlg orithmExce ption;
    80   import jav a.security .cert.Cert ificateExc eption;
    81   import jav a.security .Unrecover ableKeyExc eption;
    82   import jav a.security .KeyManage mentExcept ion;
77   import org .apache.ca talina.Con nector;   83   import org .apache.ca talina.Con nector;
78   import org .apache.ca talina.Con tainer;   84   import org .apache.ca talina.Con tainer;
79   import org .apache.ca talina.Htt pRequest;   85   import org .apache.ca talina.Htt pRequest;
80   import org .apache.ca talina.Htt pResponse;   86   import org .apache.ca talina.Htt pResponse;
81   import org .apache.ca talina.Lif ecycle;   87   import org .apache.ca talina.Lif ecycle;
82   import org .apache.ca talina.Lif ecycleEven t;   88   import org .apache.ca talina.Lif ecycleEven t;
83   import org .apache.ca talina.Lif ecycleExce ption;   89   import org .apache.ca talina.Lif ecycleExce ption;
84   import org .apache.ca talina.Lif ecycleList ener;   90   import org .apache.ca talina.Lif ecycleList ener;
85   import org .apache.ca talina.Log ger;   91   import org .apache.ca talina.Log ger;
86   import org .apache.ca talina.Req uest;   92   import org .apache.ca talina.Req uest;
87   import org .apache.ca talina.Res ponse;   93   import org .apache.ca talina.Res ponse;
88   import org .apache.ca talina.Ser vice;   94   import org .apache.ca talina.Ser vice;
89   import org .apache.ca talina.net .DefaultSe rverSocket Factory;   95   import org .apache.ca talina.net .DefaultSe rverSocket Factory;
90   import org .apache.ca talina.net .ServerSoc ketFactory ;   96   import org .apache.ca talina.net .ServerSoc ketFactory ;
91   import org .apache.ca talina.uti l.Lifecycl eSupport;   97   import org .apache.ca talina.uti l.Lifecycl eSupport;
92   import org .apache.ca talina.uti l.StringMa nager;   98   import org .apache.ca talina.uti l.StringMa nager;
93     99  
94     100  
95   /**   101   /**
96    * Impleme ntation of  an HTTP/1 .1 connect or.   102    * Impleme ntation of  an HTTP/1 .1 connect or.
97    *   103    *
98    * @author  Craig R.  McClanahan   104    * @author  Craig R.  McClanahan
99    * @author  Remy Mauc herat   105    * @author  Remy Mauc herat
100     *   @version   $Revision:   1. 2 4 .2.2   $   $Date:   2002/0 1/ 3
1   23 :1 3: 5
3
  $
  106     *   @version   $Revision:   1. 3 4
  $   $Date:   2002/0
3 / 1 8   07 :1
5 : 3 9   $
    107    * @deprec ated
101    */   108    */
102     109  
103     110  
104   public fin al class H ttpConnect or   111   public fin al class H ttpConnect or
105       implem ents Conne ctor, Life cycle, Run nable {   112       implem ents Conne ctor, Life cycle, Run nable {
106     113  
107     114  
108       // --- ---------- ---------- ---------- ---------- ----------  Instance  Variables   115       // --- ---------- ---------- ---------- ---------- ----------  Instance  Variables
109     116  
110     117  
111       /**   118       /**
112        * The  <code>Ser vice</code > we are a ssociated  with (if a ny).   119        * The  <code>Ser vice</code > we are a ssociated  with (if a ny).
113        */   120        */
114       privat e Service  service =  null;   121       privat e Service  service =  null;
115     122  
116     123  
117       /**   124       /**
118        * The  accept co unt for th is Connect or.   125        * The  accept co unt for th is Connect or.
119        */   126        */
120       privat e int acce ptCount =  10;   127       privat e int acce ptCount =  10;
121     128  
122     129  
123       /**   130       /**
124        * The  IP addres s on which  to bind,  if any.  I f <code>nu ll</code>,  all   131        * The  IP addres s on which  to bind,  if any.  I f <code>nu ll</code>,  all
125        * add resses on  the server  will be b ound.   132        * add resses on  the server  will be b ound.
126        */   133        */
127       privat e String a ddress = n ull;   134       privat e String a ddress = n ull;
128     135  
129     136  
130       /**   137       /**
131        * The  input buf fer size w e should c reate on i nput strea ms.   138        * The  input buf fer size w e should c reate on i nput strea ms.
132        */   139        */
133       privat e int buff erSize = 2 048;   140       privat e int buff erSize = 2 048;
134     141  
135     142  
136       /**   143       /**
137        * The  Container  used for  processing  requests  received b y this Con nector.   144        * The  Container  used for  processing  requests  received b y this Con nector.
138        */   145        */
139       protec ted Contai ner contai ner = null ;   146       protec ted Contai ner contai ner = null ;
140     147  
141     148  
142       /**   149       /**
143        * The  set of pr ocessors t hat have e ver been c reated.   150        * The  set of pr ocessors t hat have e ver been c reated.
144        */   151        */
145       privat e Vector c reated = n ew Vector( );   152       privat e Vector c reated = n ew Vector( );
146     153  
147     154  
148       /**   155       /**
(199 unchanged lines omitted)
348       }   355       }
349     356  
350     357  
351       /**   358       /**
352        * Set  the conne ction time out for th is Connect or.   359        * Set  the conne ction time out for th is Connect or.
353        *   360        *
354        * @pa ram count  The new co nnection t imeout   361        * @pa ram count  The new co nnection t imeout
355        */   362        */
356       public  void setC onnectionT imeout(int  connectio nTimeout)  {   363       public  void setC onnectionT imeout(int  connectio nTimeout)  {
357     364  
358           th is.connect ionTimeout  = connect ionTimeout ;   365           th is.connect ionTimeout  = connect ionTimeout ;
359     366  
360       }   367       }
361     368  
362     369  
363       /**   370       /**
364        * Ret urn the ac cept count  for this  Connector.   371        * Ret urn the ac cept count  for this  Connector.
365        */   372        */
366       public  int getAc ceptCount( ) {   373       public  int getAc ceptCount( ) {
367     374  
368           re turn (acce ptCount);   375           re turn (acce ptCount);
369     376  
370       }   377       }
371     378  
372     379  
373       /**   380       /**
374        * Set  the accep t count fo r this Con nector.   381        * Set  the accep t count fo r this Con nector.
375        *   382        *
376        * @pa ram count  The new ac cept count   383        * @pa ram count  The new ac cept count
377        */   384        */
378       public  void setA cceptCount (int count ) {   385       public  void setA cceptCount (int count ) {
379     386  
380           th is.acceptC ount = cou nt;   387           th is.acceptC ount = cou nt;
381     388  
382       }   389       }
383     390  
384     391  
385       /**   392       /**
386        * Get  the allow  chunking  flag.   393        * Get  the allow  chunking  flag.
387        */   394        */
388       public  boolean i sChunkingA llowed() {   395       public  boolean i sChunkingA llowed() {
389     396  
390           re turn (allo wChunking) ;   397           re turn (allo wChunking) ;
391     398  
392       }   399       }
393     400  
394     401  
395       /**   402       /**
    403        * Get  the allow  chunking  flag.
    404        */
    405       public  boolean g etAllowChu nking() {
    406  
    407           re turn isChu nkingAllow ed();
    408  
    409       }
    410  
    411  
    412       /**
396        * Set  the allow  chunking  flag.   413        * Set  the allow  chunking  flag.
397        *   414        *
398        * @pa ram allowC hunking Al low chunki ng flag   415        * @pa ram allowC hunking Al low chunki ng flag
399        */   416        */
400       public  void setA llowChunki ng(boolean  allowChun king) {   417       public  void setA llowChunki ng(boolean  allowChun king) {
401     418  
402           th is.allowCh unking = a llowChunki ng;   419           th is.allowCh unking = a llowChunki ng;
403     420  
404       }   421       }
405     422  
406     423  
407       /**   424       /**
408        * Ret urn the bi nd IP addr ess for th is Connect or.   425        * Ret urn the bi nd IP addr ess for th is Connect or.
409        */   426        */
410       public  String ge tAddress()  {   427       public  String ge tAddress()  {
411     428  
412           re turn (this .address);   429           re turn (this .address);
413     430  
414       }   431       }
415     432  
416     433  
417       /**   434       /**
418        * Set  the bind  IP address  for this  Connector.   435        * Set  the bind  IP address  for this  Connector.
419        *   436        *
420