LimeWire Consolidated API

com.limegroup.gnutella
Class HTTPAcceptor

java.lang.Object
  extended by org.limewire.http.BasicHttpAcceptor
      extended by com.limegroup.gnutella.HTTPAcceptor
All Implemented Interfaces:
Service, ConnectionAcceptor

public class HTTPAcceptor
extends BasicHttpAcceptor

Processes HTTP requests for Gnutella uploads.


Field Summary
 
Fields inherited from class org.limewire.http.BasicHttpAcceptor
DEFAULT_METHODS
 
Constructor Summary
HTTPAcceptor(TcpBandwidthStatistics tcpBandwidthStatistics, AuthenticationInterceptor requestAuthenticator)
           
 
Method Summary
 void acceptConnection(Socket socket, HTTPConnectionData data)
          Handles an incoming HTTP push request.
 org.apache.http.nio.protocol.NHttpRequestHandler getNotFoundHandler()
          Returns a handler that responds with a HTTP 404 error.
 String getServiceName()
           
 
Methods inherited from class org.limewire.http.BasicHttpAcceptor
acceptConnection, addAcceptorListener, addRequestInterceptor, addResponseInterceptor, createDefaultParams, getHttpMethods, getReactor, initialize, isBlocking, registerHandler, removeAcceptorListener, removeRequestInterceptor, removeResponseInterceptor, start, stop, unregisterHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPAcceptor

@Inject
public HTTPAcceptor(TcpBandwidthStatistics tcpBandwidthStatistics,
                           AuthenticationInterceptor requestAuthenticator)
Method Detail

getServiceName

public String getServiceName()
Specified by:
getServiceName in interface Service
Overrides:
getServiceName in class BasicHttpAcceptor

acceptConnection

public void acceptConnection(Socket socket,
                             HTTPConnectionData data)
Handles an incoming HTTP push request. This needs to be called from the NIO thread.


getNotFoundHandler

public org.apache.http.nio.protocol.NHttpRequestHandler getNotFoundHandler()
Returns a handler that responds with a HTTP 404 error.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.