Package ninja.bodyparser
Class BodyParserEngineManagerImpl
- java.lang.Object
-
- ninja.bodyparser.BodyParserEngineManagerImpl
-
- All Implemented Interfaces:
BodyParserEngineManager
public class BodyParserEngineManagerImpl extends Object implements BodyParserEngineManager
-
-
Constructor Summary
Constructors Constructor Description BodyParserEngineManagerImpl(com.google.inject.Injector injector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BodyParserEngine
getBodyParserEngineForContentType(String contentType)
Find the body parser engine for the given content typeSet<String>
getContentTypes()
Returns a set of the registered body parser engine content types.protected void
logBodyParserEngines()
-
-
-
Method Detail
-
getContentTypes
public Set<String> getContentTypes()
Description copied from interface:BodyParserEngineManager
Returns a set of the registered body parser engine content types.- Specified by:
getContentTypes
in interfaceBodyParserEngineManager
- Returns:
- the registered content types
-
getBodyParserEngineForContentType
public BodyParserEngine getBodyParserEngineForContentType(String contentType)
Description copied from interface:BodyParserEngineManager
Find the body parser engine for the given content type- Specified by:
getBodyParserEngineForContentType
in interfaceBodyParserEngineManager
- Parameters:
contentType
- The content type- Returns:
- The body parser engine, if found
-
logBodyParserEngines
protected final void logBodyParserEngines()
-
-