/** * This is the connected socket channel associated with this. In * order to determine if content can be read or written to or * from the channel this socket can be used with a selector. This * provides a means to react to I/O events as they occur rather * than polling the channel which is generally less performant. * * @return this returns the connected socket channel */ public SocketChannel getSocket() { return transport.getChannel(); }
/** * This is the <code>SelectableChannel</code> which is used to * determine if the operation should be executed. If the channel * is ready for a given I/O event it can be run. For instance if * the operation is used to perform some form of read operation * it can be executed when ready to read data from the channel. * * @return this returns the channel used to govern execution */ public SocketChannel getChannel() { return transport.getChannel(); }
/** * This is the connected socket channel associated with this. In * order to determine if content can be read or written to or * from the channel this socket can be used with a selector. This * provides a means to react to I/O events as they occur rather * than polling the channel which is generally less performant. * * @return this returns the connected socket channel */ public SocketChannel getSocket() { return transport.getChannel(); }
/** * This method is used to acquire the <code>SocketChannel</code> * for the connection. This allows the server to acquire the input * and output streams with which to communicate. It can also be * used to configure the connection and perform various network * operations that could otherwise not be performed. * * @return this returns the socket used by this HTTP pipeline */ public SocketChannel getChannel() { return transport.getChannel(); }
/** * This is the <code>SelectableChannel</code> which is used to * determine if the operation should be executed. If the channel * is ready for a given I/O event it can be run. For instance if * the operation is used to perform some form of read operation * it can be executed when ready to read data from the channel. * * @return this returns the channel used to govern execution */ public SocketChannel getChannel() { return transport.getChannel(); }
/** * This method is used to acquire the <code>SocketChannel</code> * for the connection. This allows the server to acquire the input * and output streams with which to communicate. It can also be * used to configure the connection and perform various network * operations that could otherwise not be performed. * * @return this returns the socket used by this HTTP pipeline */ public SocketChannel getChannel() { return transport.getChannel(); }
/** * This method is used to acquire the <code>SocketChannel</code> * for the connection. This allows the server to acquire the input * and output streams with which to communicate. It can also be * used to configure the connection and perform various network * operations that could otherwise not be performed. * * @return this returns the socket used by this HTTP pipeline */ public SocketChannel getChannel() { return transport.getChannel(); }
/** * This is the connected socket channel associated with this. In * order to determine if content can be read or written to or * from the channel this socket can be used with a selector. This * provides a means to react to I/O events as they occur rather * than polling the channel which is generally less performant. * * @return this returns the connected socket channel */ public SocketChannel getSocket() { return transport.getChannel(); }
/** * This is the <code>SelectableChannel</code> which is used to * determine if the operation should be executed. If the channel * is ready for a given I/O event it can be run. For instance if * the operation is used to perform some form of read operation * it can be executed when ready to read data from the channel. * * @return this returns the channel used to govern execution */ public SocketChannel getChannel() { return transport.getChannel(); }
/** * Constructor for the <code>Handshake</code> object. This is * used to create an operation capable of performing negotiations * for SSL connections. Typically this is used to perform request * response negotiations, such as a handshake or termination. * * @param transport the transport to perform the negotiation for * @param processor the processor used to dispatch the transport * @param reactor this is the reactor used for I/O notifications * @param size the size of the buffers used for the negotiation * @param client determines the side of the SSL handshake */ public Handshake(TransportProcessor processor, Transport transport, Reactor reactor, int size, boolean client) { this.state = new NegotiationState(this, transport); this.output = ByteBuffer.allocate(size); this.input = ByteBuffer.allocate(size); this.channel = transport.getChannel(); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.empty = ByteBuffer.allocate(0); this.processor = processor; this.transport = transport; this.reactor = reactor; this.client = client; }
/** * Constructor for the <code>Negotiation</code> object. This is * used to create an operation capable of performing negotiations * for SSL connections. Typically this is used to perform request * response negotiations, such as a handshake or termination. * * @param negotiator the negotiator used to check socket events * @param transport the transport to perform the negotiation for * @param size the size of the buffers used for the negotiation * @param client determines the side of the SSL handshake */ public Handshake(Transport transport, Negotiator negotiator, int size, boolean client) { this.state = new NegotiationState(this, transport); this.output = ByteBuffer.allocate(size); this.input = ByteBuffer.allocate(size); this.channel = transport.getChannel(); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.empty = ByteBuffer.allocate(0); this.negotiator = negotiator; this.transport = transport; this.client = client; }
/** * Constructor for the <code>Handshake</code> object. This is * used to create an operation capable of performing negotiations * for SSL connections. Typically this is used to perform request * response negotiations, such as a handshake or termination. * * @param transport the transport to perform the negotiation for * @param processor the processor used to dispatch the transport * @param reactor this is the reactor used for I/O notifications * @param size the size of the buffers used for the negotiation * @param client determines the side of the SSL handshake */ public Handshake(TransportProcessor processor, Transport transport, Reactor reactor, int size, boolean client) { this.state = new NegotiationState(this, transport); this.output = ByteBuffer.allocate(size); this.input = ByteBuffer.allocate(size); this.channel = transport.getChannel(); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.empty = ByteBuffer.allocate(0); this.processor = processor; this.transport = transport; this.reactor = reactor; this.client = client; }