Package org.apache.http.impl.bootstrap
Class RequestListener
- java.lang.Object
-
- org.apache.http.impl.bootstrap.RequestListener
-
- All Implemented Interfaces:
java.lang.Runnable
class RequestListener extends java.lang.Object implements java.lang.Runnable
- Since:
- 4.4
-
-
Field Summary
Fields Modifier and Type Field Description private HttpConnectionFactory<? extends HttpServerConnection>
connectionFactory
private ExceptionLogger
exceptionLogger
private java.util.concurrent.ExecutorService
executorService
private HttpService
httpService
private java.net.ServerSocket
serversocket
private SocketConfig
socketConfig
private java.util.concurrent.atomic.AtomicBoolean
terminated
-
Constructor Summary
Constructors Constructor Description RequestListener(SocketConfig socketConfig, java.net.ServerSocket serversocket, HttpService httpService, HttpConnectionFactory<? extends HttpServerConnection> connectionFactory, ExceptionLogger exceptionLogger, java.util.concurrent.ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTerminated()
void
run()
void
terminate()
-
-
-
Field Detail
-
socketConfig
private final SocketConfig socketConfig
-
serversocket
private final java.net.ServerSocket serversocket
-
httpService
private final HttpService httpService
-
connectionFactory
private final HttpConnectionFactory<? extends HttpServerConnection> connectionFactory
-
exceptionLogger
private final ExceptionLogger exceptionLogger
-
executorService
private final java.util.concurrent.ExecutorService executorService
-
terminated
private final java.util.concurrent.atomic.AtomicBoolean terminated
-
-
Constructor Detail
-
RequestListener
public RequestListener(SocketConfig socketConfig, java.net.ServerSocket serversocket, HttpService httpService, HttpConnectionFactory<? extends HttpServerConnection> connectionFactory, ExceptionLogger exceptionLogger, java.util.concurrent.ExecutorService executorService)
-
-