com.limegroup.gnutella
Class HTTPAcceptor
java.lang.Object
org.limewire.http.BasicHttpAcceptor
com.limegroup.gnutella.HTTPAcceptor
- All Implemented Interfaces:
- Service, ConnectionAcceptor
public class HTTPAcceptor
- extends BasicHttpAcceptor
Processes HTTP requests for Gnutella uploads.
| 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 |
HTTPAcceptor
@Inject
public HTTPAcceptor(TcpBandwidthStatistics tcpBandwidthStatistics,
AuthenticationInterceptor requestAuthenticator)
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.
Copyright © 2009. All Rights Reserved.