org.apache.droids.helper.factories
Class ProtocolFactory

java.lang.Object
  extended by org.apache.droids.helper.Loggable
      extended by org.apache.droids.helper.factories.GenericFactory<Protocol>
          extended by org.apache.droids.helper.factories.ProtocolFactory

public class ProtocolFactory
extends GenericFactory<Protocol>

Factory that will lookup a protocol plugin and return it.

Version:
1.0

Field Summary
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
ProtocolFactory()
           
 
Method Summary
 Protocol getProtocol(java.net.URI uri)
          Will lookup a protocol based on the underlying uri
 
Methods inherited from class org.apache.droids.helper.factories.GenericFactory
getMap, resolve, setMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolFactory

public ProtocolFactory()
Method Detail

getProtocol

public Protocol getProtocol(java.net.URI uri)
                     throws ProtocolNotFoundException
Will lookup a protocol based on the underlying uri

Parameters:
uri - the string that contains the protocol
Returns:
ready to use protocol plugin or null if non have been found
Throws:
ProtocolNotFoundException


Copyright © 2007-2009. All Rights Reserved.