List of usage examples for org.apache.http.impl DefaultBHttpServerConnectionFactory INSTANCE
DefaultBHttpServerConnectionFactory INSTANCE
To view the source code for org.apache.http.impl DefaultBHttpServerConnectionFactory INSTANCE.
Click Source Link
From source file:httpscheduler.GenericRequestListenerThread.java
public GenericRequestListenerThread(final int port, final HttpService httpService, final SSLServerSocketFactory sf) throws IOException { this.connFactory = DefaultBHttpServerConnectionFactory.INSTANCE; this.serversocket = sf != null ? sf.createServerSocket(port) : new ServerSocket(port); this.httpService = httpService; // only 4 connections can run concurrently connectionHandlerExecutor = Executors.newFixedThreadPool(1000); //System.out.println("Request Listener Thread created"); }
From source file:httpscheduler.LateBindingRequestListenerThread.java
public LateBindingRequestListenerThread(final int port, final HttpService httpService, final SSLServerSocketFactory sf) throws IOException { this.connFactory = DefaultBHttpServerConnectionFactory.INSTANCE; this.serversocket = sf != null ? sf.createServerSocket(port) : new ServerSocket(port); this.httpService = httpService; // only 4 connections can run concurrently connectionHandlerExecutor = Executors.newFixedThreadPool(22); System.out.println("Request Listener Thread created"); }
From source file:com.cooksys.httpserver.RequestListenerThread.java
public RequestListenerThread(final int port, final HttpService httpService) throws IOException { this.connFactory = DefaultBHttpServerConnectionFactory.INSTANCE; this.serversocket = new ServerSocket(port); this.httpService = httpService; }
From source file:io.github.kitarek.elasthttpd.server.networking.HttpNewConnection.java
public HttpNewConnection(Socket clientSocket, SocketConfiguration socketConfiguration) { this.clientSocket = notNull(clientSocket, "Client socket cannot be null"); this.socketConfiguration = notNull(socketConfiguration, "Socket configuration cannot be null"); connectionFactory = DefaultBHttpServerConnectionFactory.INSTANCE; }
From source file:org.pepstock.jem.node.https.RequestListener.java
/** * Builds the object creating the socket server to stay in listening mode. * //from ww w. jav a 2 s .c o m * @param port HTTPS port to stay in istening * @param httpService HTTP service * @param socketFactory SSL socket factory * @throws IOException if any errors occurs * */ public RequestListener(final int port, final HttpService httpService, final SSLServerSocketFactory socketFactory) throws IOException { super(THREAD_NAME); this.connectionFactory = DefaultBHttpServerConnectionFactory.INSTANCE; this.serverSocket = socketFactory.createServerSocket(port); this.httpService = httpService; }
From source file:org.Cherry.Modules.Web.Engine.WebEngine.java
public HttpConnectionFactory<DefaultBHttpServerConnection> getHttpConnectionFactory() { if (null == _connectionFactory) _connectionFactory = DefaultBHttpServerConnectionFactory.INSTANCE; return _connectionFactory; }