org.apache.droids.helper.factories
Class HandlerFactory

java.lang.Object
  extended by org.apache.droids.helper.Loggable
      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.

Version:
1.0

Field Summary
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
HandlerFactory()
           
 
Method Summary
 boolean handle(java.net.URI uri, ContentEntity entity)
          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(java.net.URI uri,
                      ContentEntity entity)
               throws DroidsException,
                      java.io.IOException
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
Throws:
DroidsException
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.