org.apache.geronimo.gshell.whisper.transport
Class TransportAdapter
java.lang.Object
org.apache.geronimo.gshell.whisper.transport.TransportAdapter
- All Implemented Interfaces:
- Closeable, Transport
public class TransportAdapter
- extends Object
- implements Transport
???
- Version:
- $Rev: 579828 $ $Date: 2007-09-26 15:15:42 -0700 (Wed, 26 Sep 2007) $
TransportAdapter
public TransportAdapter(org.apache.mina.common.IoSession session)
toString
public String toString()
- Overrides:
toString in class Object
getRemote
public URI getRemote()
- Specified by:
getRemote in interface Transport
getLocal
public URI getLocal()
- Specified by:
getLocal in interface Transport
getConnector
public org.apache.mina.common.IoConnector getConnector()
- Specified by:
getConnector in interface Transport
getSession
public org.apache.mina.common.IoSession getSession()
- Specified by:
getSession in interface Transport
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream in interface Transport
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream in interface Transport
getErrorStream
public OutputStream getErrorStream()
- Specified by:
getErrorStream in interface Transport
send
public org.apache.mina.common.WriteFuture send(Object msg)
throws Exception
- Specified by:
send in interface Transport
- Throws:
Exception
request
public Message request(Message msg)
throws Exception
- Specified by:
request in interface Transport
- Throws:
Exception
request
public Message request(Message msg,
Duration timeout)
throws Exception
- Specified by:
request in interface Transport
- Throws:
Exception
isClosed
public boolean isClosed()
ensureOpened
protected void ensureOpened()
close
public void close()
- Specified by:
close in interface Closeable- Specified by:
close in interface Transport
addListener
public void addListener(Transport.Listener listener)
- Specified by:
addListener in interface Transport
removeListener
public void removeListener(Transport.Listener listener)
- Specified by:
removeListener in interface Transport
setConfiguration
public void setConfiguration(Transport.Configuration config)
- Specified by:
setConfiguration in interface Transport
getConfiguration
public Transport.Configuration getConfiguration()
- Specified by:
getConfiguration in interface Transport
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.