Interface BodyParserEngine

    • Method Detail

      • invoke

        <T> T invoke​(Context context,
                     Class<T> classOfT)
        Invoke the parser and get back a Java object populated with the content of this request. MUST BE THREAD SAFE TO CALL!
        Parameters:
        context - The context
        classOfT - The class we expect
        Returns:
        The object instance populated with all values from raw request
      • getContentType

        String getContentType()
        The content type this BodyParserEngine can handle MUST BE THREAD SAFE TO CALL!
        Returns:
        the content type. this parser can handle - eg. "application/json"