You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2006/07/29 11:25:52 UTC
svn commit: r426767 - in /jakarta/httpcomponents/httpcore/trunk/src:
examples/org/apache/http/examples/ElementalHttpServer.java
java/org/apache/http/HttpServerConnection.java
Author: olegk
Date: Sat Jul 29 02:25:52 2006
New Revision: 426767
URL: http://svn.apache.org/viewvc?rev=426767&view=rev
Log:
Removed HttpServerConnection#bind method that takes java.net.Socket as a parameter. HttpServerConnection interface should not be directly dependent on any network socket implementation
Modified:
jakarta/httpcomponents/httpcore/trunk/src/examples/org/apache/http/examples/ElementalHttpServer.java
jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HttpServerConnection.java
Modified: jakarta/httpcomponents/httpcore/trunk/src/examples/org/apache/http/examples/ElementalHttpServer.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/examples/org/apache/http/examples/ElementalHttpServer.java?rev=426767&r1=426766&r2=426767&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/examples/org/apache/http/examples/ElementalHttpServer.java (original)
+++ jakarta/httpcomponents/httpcore/trunk/src/examples/org/apache/http/examples/ElementalHttpServer.java Sat Jul 29 02:25:52 2006
@@ -143,7 +143,7 @@
while (!Thread.interrupted()) {
try {
Socket socket = this.serversocket.accept();
- HttpServerConnection conn = new DefaultHttpServerConnection();
+ DefaultHttpServerConnection conn = new DefaultHttpServerConnection();
System.out.println("Incoming connection from " + socket.getInetAddress());
conn.bind(socket, this.params);
FileServiceHandler fileServiceHandler = new FileServiceHandler(conn);
Modified: jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HttpServerConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HttpServerConnection.java?rev=426767&r1=426766&r2=426767&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HttpServerConnection.java (original)
+++ jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HttpServerConnection.java Sat Jul 29 02:25:52 2006
@@ -30,7 +30,6 @@
package org.apache.http;
import java.io.IOException;
-import java.net.Socket;
import org.apache.http.params.HttpParams;
@@ -46,16 +45,6 @@
*/
public interface HttpServerConnection extends HttpConnection {
- /**
- * Binds this connection to an underlying socket.
- *
- * @param socket The underlying socket.
- * @param params the parameters in effect for this connection
- * @throws IOException
- */
- void bind(Socket socket, HttpParams params)
- throws IOException;
-
/**
* Receives the request line and all headers available from this connection.
* The caller should examine the returned request and decide if to receive a