Interface OembedResponseRenderer


  • public interface OembedResponseRenderer
    The purpose of this interface is turning OembedResponses into usable chunks of html code.
    Author:
    Michael J. Simons, 2014-12-31
    • Method Detail

      • render

        java.lang.String render​(OembedResponse response,
                                org.jsoup.nodes.Element originalAnchor)
        Renderes the OembedResponse response into an html string. The original anchor is provided for giving more context information.
        Parameters:
        response - The response that should be handled
        originalAnchor - The anchor that triggered the oembed request. This is a clone of the original object, changes will not be propagated.
        Returns:
        An html fragment containt the representation of the given OembedResponse