/** * Constructor for the <code>SocketConnection</code> object. This * will create a new connection that accepts incoming connections * and hands these connections as <code>Pipeline</code> objects * to the specified processor. This in turn will deliver request * and response objects to the internal container. * * @param server this is the processor that receives requests * @param agent this is used to create a trace for the socket */ public SocketConnection(Server server, Agent agent) throws IOException { this.manager = new SocketListenerManager(server, agent); this.server = server; }
/** * Constructor for the <code>SocketConnection</code> object. This * will create a new connection that accepts incoming connections * and hands these connections as <code>Socket</code> objects * to the specified processor. This in turn will deliver request * and response objects to the internal container. * * @param processor this is the connector that receives requests * @param analyzer this is used to create a trace for the socket */ public SocketConnection(SocketProcessor processor, TraceAnalyzer analyzer) throws IOException { this.manager = new SocketListenerManager(processor, analyzer); this.processor = processor; }
/** * Constructor for the <code>SocketConnection</code> object. This * will create a new connection that accepts incoming connections * and hands these connections as <code>Socket</code> objects * to the specified processor. This in turn will deliver request * and response objects to the internal container. * * @param processor this is the connector that receives requests * @param analyzer this is used to create a trace for the socket */ public SocketConnection(SocketProcessor processor, TraceAnalyzer analyzer) throws IOException { this.manager = new SocketListenerManager(processor, analyzer); this.processor = processor; }