org.fusesource.fabric.dosgi.tcp
Class TcpTransportFactory

java.lang.Object
  extended by org.fusesource.fabric.dosgi.tcp.TcpTransportFactory

public class TcpTransportFactory
extends java.lang.Object

Author:
Hiram Chirino, David Martin Clavo david(dot)martin(dot)clavo(at)gmail.com (logging improvement modifications)

Constructor Summary
TcpTransportFactory()
           
 
Method Summary
 TcpTransportServer bind(java.lang.String location)
           
 TcpTransport connect(java.lang.String location)
           
protected  TcpTransportServer createTcpTransportServer(java.net.URI location)
          Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.
protected  TcpTransport createTransport(java.net.URI uri)
          Allows subclasses of TcpTransportFactory to create custom instances of TcpTransport.
protected  java.net.URI getLocalLocation(java.net.URI location)
           
protected  java.lang.String getOption(java.util.Map options, java.lang.String key, java.lang.String def)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpTransportFactory

public TcpTransportFactory()
Method Detail

bind

public TcpTransportServer bind(java.lang.String location)
                        throws java.lang.Exception
Throws:
java.lang.Exception

connect

public TcpTransport connect(java.lang.String location)
                     throws java.lang.Exception
Throws:
java.lang.Exception

createTcpTransportServer

protected TcpTransportServer createTcpTransportServer(java.net.URI location)
                                               throws java.io.IOException,
                                                      java.net.URISyntaxException,
                                                      java.lang.Exception
Allows subclasses of TcpTransportFactory to create custom instances of TcpTransportServer.

Throws:
java.io.IOException
java.net.URISyntaxException
java.lang.Exception

createTransport

protected TcpTransport createTransport(java.net.URI uri)
                                throws java.security.NoSuchAlgorithmException,
                                       java.lang.Exception
Allows subclasses of TcpTransportFactory to create custom instances of TcpTransport.

Throws:
java.security.NoSuchAlgorithmException
java.lang.Exception

getLocalLocation

protected java.net.URI getLocalLocation(java.net.URI location)

getOption

protected java.lang.String getOption(java.util.Map options,
                                     java.lang.String key,
                                     java.lang.String def)


Copyright © 2013 Red Hat. All Rights Reserved.