org.apache.droids.helper.factories
Class ProtocolFactory

Package class diagram package ProtocolFactory
java.lang.Object
  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.


Field Summary
 
Fields inherited from class org.apache.droids.helper.factories.GenericFactory
log
 
Constructor Summary
ProtocolFactory()
           
 
Method Summary
 Protocol getProtocol(String 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(String 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 © 2008 The Apache Software Foundation