public class DefaultDebugSupport extends Object implements DebugSupport
ODATA_DEBUG_DOWNLOAD, ODATA_DEBUG_HTML, ODATA_DEBUG_JSON, ODATA_DEBUG_QUERY_PARAMETER
Constructor and Description |
---|
DefaultDebugSupport() |
Modifier and Type | Method and Description |
---|---|
ODataResponse |
createDebugResponse(String debugFormat,
DebugInformation debugInfo)
Creates a debug response and delivers it back to the Olingo library.
|
void |
init(OData odata)
Initializes the debug support implementation.
|
boolean |
isUserAuthorized()
Ensures that the user that requested the debug output is authorized to see this output.
|
public void init(OData odata)
DebugSupport
DebugSupport.isUserAuthorized()
and DebugSupport.createDebugResponse(String, DebugInformation)
.init
in interface DebugSupport
odata
- related OData/Olingo service factorypublic boolean isUserAuthorized()
DebugSupport
isUserAuthorized
in interface DebugSupport
public ODataResponse createDebugResponse(String debugFormat, DebugInformation debugInfo)
DebugSupport
createDebugResponse
in interface DebugSupport
debugFormat
- the value of the odata-debug query parameterdebugInfo
- all necessary information to construct debug outputCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.