Class DebugResponseHelperImpl

java.lang.Object
org.apache.olingo.server.core.debug.DebugResponseHelperImpl
All Implemented Interfaces:
DebugResponseHelper

public class DebugResponseHelperImpl extends Object implements DebugResponseHelper
  • Constructor Details

    • DebugResponseHelperImpl

      public DebugResponseHelperImpl(String debugFormat)
  • Method Details

    • createDebugResponse

      public ODataResponse createDebugResponse(DebugInformation debugInfo)
      Description copied from interface: DebugResponseHelper
      Creates a debug response based on the given parameters. Will never throw an exception.
      Specified by:
      createDebugResponse in interface DebugResponseHelper
      Parameters:
      debugInfo - debug information
      Returns:
      the debug response or the raw application response in case an exception occurred
    • getVersion

      protected static String getVersion()
      Gets version field information for response. Result is never null.
      Returns:
      version field information
    • escapeHtml

      protected static String escapeHtml(String value)
    • appendJsonTable

      protected static void appendJsonTable(com.fasterxml.jackson.core.JsonGenerator gen, Map<String,String> entries) throws IOException
      Throws:
      IOException
    • appendHtmlTable

      protected static void appendHtmlTable(Writer writer, Map<String,String> entries) throws IOException
      Throws:
      IOException