@Test public void noDebugModeCreateDebugResponseCallMustDoNothing() { ODataResponse odResponse = new ODataResponse(); ODataResponse debugResponse = debugger.createDebugResponse(null, odResponse, null, null, null); assertEquals(odResponse, debugResponse); }
public ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response, final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables) { if (!isDebugMode) { return response; } try { DebugInformation debugInfo = createDebugInformation(request, response, exception, uriInfo, serverEnvironmentVariables); return debugSupport.createDebugResponse(debugFormat, debugInfo); } catch (Exception e) { return createFailResponse(); } }
ServerCoreDebugger { public ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response, final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables) { if (!isDebugMode) { return response; } try { DebugInformation debugInfo = createDebugInformation(request, response, exception, uriInfo, serverEnvironmentVariables); return debugSupport.createDebugResponse(debugFormat, debugInfo); } catch (Exception e) { return createFailResponse(); } } }
ServerCoreDebugger { public ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response, final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables) { if (!isDebugMode) { return response; } try { DebugInformation debugInfo = createDebugInformation(request, response, exception, uriInfo, serverEnvironmentVariables); return debugSupport.createDebugResponse(debugFormat, debugInfo); } catch (Exception e) { return createFailResponse(); } } ServerCoreDebugger(final OData odata); }
ServerCoreDebugger { public ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response, final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables) { if (!isDebugMode) { return response; } try { DebugInformation debugInfo = createDebugInformation(request, response, exception, uriInfo, serverEnvironmentVariables); return debugSupport.createDebugResponse(debugFormat, debugInfo); } catch (Exception e) { return createFailResponse(); } } ServerCoreDebugger(final OData odata); void resolveDebugMode(final HttpServletRequest request); ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response,
      final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables); int startRuntimeMeasurement(final String className, final String methodName); void stopRuntimeMeasurement(final int handle); void setDebugSupportProcessor(final DebugSupport debugSupport); boolean isDebugMode(); }
ServerCoreDebugger { public ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response, final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables) { if (!isDebugMode) { return response; } try { DebugInformation debugInfo = createDebugInformation(request, response, exception, uriInfo, serverEnvironmentVariables); return debugSupport.createDebugResponse(debugFormat, debugInfo); } catch (Exception e) { return createFailResponse(); } } ServerCoreDebugger(final OData odata); void resolveDebugMode(final HttpServletRequest request); ODataResponse createDebugResponse(final ODataRequest request, final ODataResponse response,
      final Exception exception, final UriInfo uriInfo, final Map<String, String> serverEnvironmentVariables); int startRuntimeMeasurement(final String className, final String methodName); void stopRuntimeMeasurement(final int handle); void setDebugSupportProcessor(final DebugSupport debugSupport); boolean isDebugMode();  }