org.apache.qpid.proton.engine
Interface Transport

All Superinterfaces:
Endpoint

public interface Transport
extends Endpoint

Transport


Field Summary
static int END_OF_STREAM
           
static int SESSION_WINDOW
           
 
Method Summary
 void bind(Connection connection)
           
 int input(byte[] bytes, int offset, int size)
           
 int output(byte[] dest, int offset, int size)
          Has the transport produce up to size bytes placing the result into dest beginning at position offset.
 Sasl sasl()
           
 Ssl ssl(SslDomain sslDomain)
          As per ssl(SslDomain, SslPeerDetails) but no attempt is made to resume a previous SSL session.
 Ssl ssl(SslDomain sslDomain, SslPeerDetails sslPeerDetails)
          Wrap this transport's output and input to apply SSL encryption and decryption respectively.
 
Methods inherited from interface org.apache.qpid.proton.engine.Endpoint
close, free, getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, open, setContext
 

Field Detail

SESSION_WINDOW

static final int SESSION_WINDOW
See Also:
Constant Field Values

END_OF_STREAM

static final int END_OF_STREAM
See Also:
Constant Field Values
Method Detail

bind

void bind(Connection connection)

input

int input(byte[] bytes,
          int offset,
          int size)
Parameters:
bytes - input bytes for consumption
offset - the offset within bytes where input begins
size - the number of bytes available for input
Returns:
the number of bytes consumed

output

int output(byte[] dest,
           int offset,
           int size)
Has the transport produce up to size bytes placing the result into dest beginning at position offset.

Parameters:
dest - array for output bytes
offset - the offset within bytes where output begins
size - the maximum number of bytes to be output
Returns:
the number of bytes written

sasl

Sasl sasl()

ssl

Ssl ssl(SslDomain sslDomain,
        SslPeerDetails sslPeerDetails)
Wrap this transport's output and input to apply SSL encryption and decryption respectively. This method is expected to be called at most once. A subsequent invocation will return the same Ssl object, regardless of the parameters supplied.

Parameters:
sslDomain - the SSL settings to use
sslPeerDetails - may be null, in which case SSL session resume will not be attempted
Returns:
an Ssl object representing the SSL session.

ssl

Ssl ssl(SslDomain sslDomain)
As per ssl(SslDomain, SslPeerDetails) but no attempt is made to resume a previous SSL session.



Copyright © 2013 The Apache Software Foundation. All Rights Reserved.