/** * This is used to acquire the trace object that is associated * with the operation. A trace object is used to collection details * on what operations are being performed. For instance it may * contain information relating to I/O events or errors. * * @return this returns the trace associated with this operation */ public Trace getTrace() { return transport.getTrace(); }
/** * This is used to acquire the trace object that is associated * with the operation. A trace object is used to collection details * on what operations are being performed. For instance it may * contain information relating to I/O events or errors. * * @return this returns the trace associated with this operation */ public Trace getTrace() { return transport.getTrace(); }
/** * Constructor for the <code>SecureTransport</code> object. This * is used to create a transport for sending and receiving data * over SSL. This must be created with a pipeline that has already * performed the SSL handshake and is read to used. * * @param transport this is the transport to delegate operations to * @param certificate this is the certificate for the connection * @param input this is the input buffer used to read the data * @param swap this is the swap buffer to be used for reading * @param size this is the size of the buffers to be allocated */ public SecureTransport(Transport transport, Certificate certificate, ByteBuffer input, ByteBuffer swap, int size) { this.output = ByteBuffer.allocate(size); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.certificate = certificate; this.transport = transport; this.input = input; this.swap = swap; }
/** * Constructor for the <code>SecureTransport</code> object. This * is used to create a transport for sending and receiving data * over SSL. This must be created with a pipeline that has already * performed the SSL handshake and is read to used. * * @param transport this is the transport to delegate operations to * @param certificate this is the certificate for the connection * @param input this is the input buffer used to read the data * @param swap this is the swap buffer to be used for reading * @param size this is the size of the buffers to be allocated */ public SecureTransport(Transport transport, Certificate certificate, ByteBuffer input, ByteBuffer swap, int size) { this.output = ByteBuffer.allocate(size); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.certificate = certificate; this.transport = transport; this.input = input; this.swap = swap; }
/** * Constructor for the <code>SecureTransport</code> object. This * is used to create a transport for sending and receiving data * over SSL. This must be created with a pipeline that has already * performed the SSL handshake and is read to used. * * @param transport this is the transport to delegate operations to * @param certificate this is the certificate for the connection * @param input this is the input buffer used to read the data * @param swap this is the swap buffer to be used for reading * @param size this is the size of the buffers to be allocated */ public SecureTransport(Transport transport, Certificate certificate, ByteBuffer input, ByteBuffer swap, int size) { this.output = ByteBuffer.allocate(size); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.certificate = certificate; this.transport = transport; this.input = input; this.swap = swap; }
/** * 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; }
/** * 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>TransportChannel</code> object. The * transport channel basically wraps a channel and provides a * means to send and receive data using specialized adapters. * These adapters provide a simpler means for communicating over * the network to the connected client. * * @param transport this is the underlying transport to be used */ public TransportChannel(Transport transport) throws IOException { this.cursor = new TransportCursor(transport); this.sender = new TransportSender(transport); this.certificate = transport.getCertificate(); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.transport = transport; }
/** * Constructor for the <code>TransportChannel</code> object. The * transport channel basically wraps a channel and provides a * means to send and receive data using specialized adapters. * These adapters provide a simpler means for communicating over * the network to the connected client. * * @param transport this is the underlying transport to be used */ public TransportChannel(Transport transport) throws IOException { this.cursor = new TransportCursor(transport); this.writer = new TransportWriter(transport); this.certificate = transport.getCertificate(); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.transport = transport; }
/** * Constructor for the <code>TransportChannel</code> object. The * transport channel basically wraps a channel and provides a * means to send and receive data using specialized adapters. * These adapters provide a simpler means for communicating over * the network to the connected client. * * @param transport this is the underlying transport to be used */ public TransportChannel(Transport transport) throws IOException { this.cursor = new TransportCursor(transport); this.writer = new TransportWriter(transport); this.certificate = transport.getCertificate(); this.engine = transport.getEngine(); this.trace = transport.getTrace(); this.transport = transport; }