org.apache.droids.helper.factories
Class ParserFactory

java.lang.Object
  extended by org.apache.droids.helper.Loggable
      extended by org.apache.droids.helper.factories.GenericFactory<Parser>
          extended by org.apache.droids.helper.factories.ParserFactory

public class ParserFactory
extends GenericFactory<Parser>

Factory that will lookup a parser by its identifier and return it.

Version:
1.0

Field Summary
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
ParserFactory()
           
 
Method Summary
 Parser getParser(java.lang.String contentType)
          Lookup a parser by its identifier (content type) and return it.
 
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

ParserFactory

public ParserFactory()
Method Detail

getParser

public Parser getParser(java.lang.String contentType)
                 throws DroidsException
Lookup a parser by its identifier (content type) and return it.

Parameters:
contentType - for which content type we need a parser
Returns:
null if we do not find a registered Parser otherwise the Parser
Throws:
DroidsException


Copyright © 2007-2009. All Rights Reserved.