Class DebugInformation
java.lang.Object
org.apache.olingo.server.api.debug.DebugInformation
This class contains all information necessary to construct a debug response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will return the ODataResponse which was filled by the Application or the library in an exception case.This method will return any exception that was thrown from the application or library.This method will return the ODataRequest the library created.This method will return all runtime information which was collected inside the library.A map containing information about the runtime environment.The URI Info object the library created during URI parsing.void
setApplicationResponse
(ODataResponse applicationResponse) void
setException
(Exception exception) void
setRequest
(ODataRequest request) void
setRuntimeInformation
(List<RuntimeMeasurement> runtimeInformation) void
setServerEnvironmentVariables
(Map<String, String> serverEnvironmentVariables) void
setUriInfo
(UriInfo uriInfo)
-
Constructor Details
-
DebugInformation
public DebugInformation()
-
-
Method Details
-
getRequest
This method will return the ODataRequest the library created. This request will never be null but might be filled incompletely if there has been an exception during the request parsing.- Returns:
- the ODataRequest the library built
-
setRequest
-
getApplicationResponse
This method will return the ODataResponse which was filled by the Application or the library in an exception case. The response might be null or might not be filled completely.- Returns:
- the response filled by the application
-
setApplicationResponse
-
getUriInfo
The URI Info object the library created during URI parsing. Might be null if there was an exception during URI parsing.- Returns:
- the URI Info Object
-
setUriInfo
-
getException
This method will return any exception that was thrown from the application or library. Will be null if there was no exception.- Returns:
- an exception if thrown.
-
setException
-
getServerEnvironmentVariables
A map containing information about the runtime environment. Depending on the servlet or webserver used this map might contain different information. Will never be null but might be empty.- Returns:
- environment variables
-
setServerEnvironmentVariables
-
getRuntimeInformation
This method will return all runtime information which was collected inside the library. Might be null if no data could be collected.- Returns:
- runtime information collected by the library
-
setRuntimeInformation
-