org.apache.droids.helper.factories
Class HandlerFactory

Package class diagram package HandlerFactory
java.lang.Object
  extended by org.apache.droids.helper.factories.GenericFactory<Handler>
      extended by org.apache.droids.helper.factories.HandlerFactory

public class HandlerFactory
extends GenericFactory<Handler>

Factory that will traverse all registered handler and execute them.


Field Summary
 
Fields inherited from class org.apache.droids.helper.factories.GenericFactory
log
 
Constructor Summary
HandlerFactory()
           
 
Method Summary
 boolean handle(InputStream stream, URL url, Parse parse)
          Will traverse all registered handler and execute them.
 
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

HandlerFactory

public HandlerFactory()
Method Detail

handle

public boolean handle(InputStream stream,
                      URL url,
                      Parse parse)
Will traverse all registered handler and execute them. If we encounter a problem we directly return false and leave.

Parameters:
stream - the underlying stream
url - the underlying url
parse - the underlying parse object
Returns:
false if we found a problem, true if all went well


Copyright © 2008 The Apache Software Foundation