org.apache.qpid.proton.engine.impl
Class TransportImpl

java.lang.Object
  extended by org.apache.qpid.proton.engine.impl.EndpointImpl
      extended by org.apache.qpid.proton.engine.impl.TransportImpl
All Implemented Interfaces:
FrameBody.FrameBodyHandler<Integer>, Endpoint, FrameTransport, Transport

public class TransportImpl
extends EndpointImpl
implements Transport, FrameBody.FrameBodyHandler<Integer>, FrameTransport


Field Summary
static Accepted ACCEPTED
           
static byte[] HEADER
           
static int SESSION_WINDOW
           
 
Fields inherited from interface org.apache.qpid.proton.engine.Transport
END_OF_STREAM
 
Constructor Summary
TransportImpl()
           
 
Method Summary
 void bind(Connection conn)
           
 void free()
           
protected  ConnectionImpl getConnectionImpl()
           
 ProtocolTracer getProtocolTracer()
           
 void handleAttach(Attach attach, Binary payload, Integer channel)
           
 void handleBegin(Begin begin, Binary payload, Integer channel)
           
 void handleClose(Close close, Binary payload, Integer channel)
           
 void handleDetach(Detach detach, Binary payload, Integer channel)
           
 void handleDisposition(Disposition disposition, Binary payload, Integer channel)
           
 void handleEnd(End end, Binary payload, Integer channel)
           
 void handleFlow(Flow flow, Binary payload, Integer channel)
           
 void handleOpen(Open open, Binary payload, Integer channel)
           
 void handleTransfer(Transfer transfer, Binary payload, Integer channel)
           
 int input(byte[] bytes, int offset, int length)
           
 boolean input(TransportFrame frame)
           
 int output(byte[] bytes, int offset, int size)
           
 Sasl sasl()
           
 void setProtocolTracer(ProtocolTracer protocolTracer)
           
 Ssl ssl(SslDomain sslDomain)
           
 Ssl ssl(SslDomain sslDomain, SslPeerDetails sslPeerDetails)
          
 
Methods inherited from class org.apache.qpid.proton.engine.impl.EndpointImpl
close, getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, open, setContext, setLocalError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.qpid.proton.engine.Endpoint
close, getContext, getLocalError, getLocalState, getRemoteError, getRemoteState, open, setContext
 

Field Detail

SESSION_WINDOW

public static final int SESSION_WINDOW
See Also:
Constant Field Values

HEADER

public static final byte[] HEADER

ACCEPTED

public static final Accepted ACCEPTED
Constructor Detail

TransportImpl

public TransportImpl()
Method Detail

bind

public void bind(Connection conn)
Specified by:
bind in interface Transport

input

public int input(byte[] bytes,
                 int offset,
                 int length)
Specified by:
input in interface Transport

output

public int output(byte[] bytes,
                  int offset,
                  int size)
Specified by:
output in interface Transport

sasl

public Sasl sasl()
Specified by:
sasl in interface Transport

ssl

public Ssl ssl(SslDomain sslDomain,
               SslPeerDetails sslPeerDetails)

Note that sslDomain must implement ProtonSslEngineProvider. This is not possible enforce at the API level because ProtonSslEngineProvider is not part of the public Proton API.

Specified by:
ssl in interface Transport

ssl

public Ssl ssl(SslDomain sslDomain)
Specified by:
ssl in interface Transport

getConnectionImpl

protected ConnectionImpl getConnectionImpl()
Specified by:
getConnectionImpl in class EndpointImpl

free

public void free()
Specified by:
free in interface Endpoint
Overrides:
free in class EndpointImpl

handleOpen

public void handleOpen(Open open,
                       Binary payload,
                       Integer channel)
Specified by:
handleOpen in interface FrameBody.FrameBodyHandler<Integer>

handleBegin

public void handleBegin(Begin begin,
                        Binary payload,
                        Integer channel)
Specified by:
handleBegin in interface FrameBody.FrameBodyHandler<Integer>

handleAttach

public void handleAttach(Attach attach,
                         Binary payload,
                         Integer channel)
Specified by:
handleAttach in interface FrameBody.FrameBodyHandler<Integer>

handleFlow

public void handleFlow(Flow flow,
                       Binary payload,
                       Integer channel)
Specified by:
handleFlow in interface FrameBody.FrameBodyHandler<Integer>

handleTransfer

public void handleTransfer(Transfer transfer,
                           Binary payload,
                           Integer channel)
Specified by:
handleTransfer in interface FrameBody.FrameBodyHandler<Integer>

handleDisposition

public void handleDisposition(Disposition disposition,
                              Binary payload,
                              Integer channel)
Specified by:
handleDisposition in interface FrameBody.FrameBodyHandler<Integer>

handleDetach

public void handleDetach(Detach detach,
                         Binary payload,
                         Integer channel)
Specified by:
handleDetach in interface FrameBody.FrameBodyHandler<Integer>

handleEnd

public void handleEnd(End end,
                      Binary payload,
                      Integer channel)
Specified by:
handleEnd in interface FrameBody.FrameBodyHandler<Integer>

handleClose

public void handleClose(Close close,
                        Binary payload,
                        Integer channel)
Specified by:
handleClose in interface FrameBody.FrameBodyHandler<Integer>

input

public boolean input(TransportFrame frame)
Specified by:
input in interface FrameTransport

getProtocolTracer

public ProtocolTracer getProtocolTracer()

setProtocolTracer

public void setProtocolTracer(ProtocolTracer protocolTracer)


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