org.apache.droids.helper.factories
Class ParserFactory

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


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