hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r413701 - /jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java
Date Mon, 12 Jun 2006 16:22:48 GMT
Author: olegk
Date: Mon Jun 12 09:22:47 2006
New Revision: 413701

URL: http://svn.apache.org/viewvc?rev=413701&view=rev
Log:
Added constructor that takes a parent context as a parameter

Modified:
    jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java

Modified: jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java?rev=413701&r1=413700&r2=413701&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java
Mon Jun 12 09:22:47 2006
@@ -67,13 +67,21 @@
     private HttpParams params = null;
 
     public HttpService(final HttpServerConnection conn) {
+        this(conn, null);
+    }
+
+    public HttpService(final HttpServerConnection conn, final HttpContext parentContext)
{
         super();
         if (conn == null) {
             throw new IllegalArgumentException("HTTP server connection may not be null");
         }
         this.conn = conn;
         this.connStrategy = new DefaultConnectionReuseStrategy();
-        this.context = new HttpExecutionContext(null);
+        this.context = new HttpExecutionContext(parentContext);
+    }
+    
+    public HttpContext getContext() {
+        return this.context;
     }
 
     public HttpParams getParams() {



Mime
View raw message