Class ODataDebugResponseWrapper
- java.lang.Object
-
- org.apache.olingo.odata2.core.debug.ODataDebugResponseWrapper
-
public class ODataDebugResponseWrapper extends Object
Wraps an OData response into an OData response containing additional information useful for support purposes.
-
-
Field Summary
Fields Modifier and Type Field Description static StringODATA_DEBUG_DOWNLOADstatic StringODATA_DEBUG_HTMLstatic StringODATA_DEBUG_JSONstatic StringODATA_DEBUG_QUERY_PARAMETER
-
Constructor Summary
Constructors Constructor Description ODataDebugResponseWrapper(ODataContext context, ODataResponse response, UriInfo uriInfo, Exception exception, String debugValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidappendHtmlTable(Writer writer, Map<String,String> entries)protected static voidappendJsonTable(JsonStreamWriter jsonStreamWriter, Map<String,String> entries)protected static StringescapeHtml(String value)ODataResponsewrapResponse()
-
-
-
Field Detail
-
ODATA_DEBUG_QUERY_PARAMETER
public static final String ODATA_DEBUG_QUERY_PARAMETER
- See Also:
- Constant Field Values
-
ODATA_DEBUG_JSON
public static final String ODATA_DEBUG_JSON
- See Also:
- Constant Field Values
-
ODATA_DEBUG_HTML
public static final String ODATA_DEBUG_HTML
- See Also:
- Constant Field Values
-
ODATA_DEBUG_DOWNLOAD
public static final String ODATA_DEBUG_DOWNLOAD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ODataDebugResponseWrapper
public ODataDebugResponseWrapper(ODataContext context, ODataResponse response, UriInfo uriInfo, Exception exception, String debugValue)
-
-
Method Detail
-
wrapResponse
public ODataResponse wrapResponse()
-
appendJsonTable
protected static void appendJsonTable(JsonStreamWriter jsonStreamWriter, Map<String,String> entries) throws IOException
- Throws:
IOException
-
appendHtmlTable
protected static void appendHtmlTable(Writer writer, Map<String,String> entries) throws IOException
- Throws:
IOException
-
-