org.odata4j.producer
Class ErrorResponseExtensions

java.lang.Object
  extended by org.odata4j.producer.ErrorResponseExtensions

public class ErrorResponseExtensions
extends Object

This class provides implementations of the ErrorResponseExtension interface for common use cases.


Field Summary
static String ODATA4J_DEBUG
          Default system property and query parameter that drives whether or not inner errors are returned.
 
Constructor Summary
ErrorResponseExtensions()
           
 
Method Summary
static ErrorResponseExtension returnInnerErrors()
          Returns inner errors in all cases.
static ErrorResponseExtension returnInnerErrorsBasedOnDefaultQueryParameter()
          Returns inner errors when the default query parameter is set to true.
static ErrorResponseExtension returnInnerErrorsBasedOnDefaultSystemProperty()
          Returns inner errors when the default system property is set to true.
static ErrorResponseExtension returnInnerErrorsBasedOnQueryParameter(String queryParameterName)
          Returns inner errors when a custom query parameter is set to true.
static ErrorResponseExtension returnInnerErrorsBasedOnSystemProperty(String propertyName)
          Returns inner errors when a system property is set to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ODATA4J_DEBUG

public static final String ODATA4J_DEBUG
Default system property and query parameter that drives whether or not inner errors are returned.

See Also:
returnInnerErrorsBasedOnDefaultSystemProperty(), returnInnerErrorsBasedOnDefaultQueryParameter(), Constant Field Values
Constructor Detail

ErrorResponseExtensions

public ErrorResponseExtensions()
Method Detail

returnInnerErrors

public static final ErrorResponseExtension returnInnerErrors()
Returns inner errors in all cases.


returnInnerErrorsBasedOnDefaultQueryParameter

public static final ErrorResponseExtension returnInnerErrorsBasedOnDefaultQueryParameter()
Returns inner errors when the default query parameter is set to true.

See Also:
ODATA4J_DEBUG

returnInnerErrorsBasedOnDefaultSystemProperty

public static final ErrorResponseExtension returnInnerErrorsBasedOnDefaultSystemProperty()
Returns inner errors when the default system property is set to true.

See Also:
ODATA4J_DEBUG

returnInnerErrorsBasedOnQueryParameter

public static final ErrorResponseExtension returnInnerErrorsBasedOnQueryParameter(String queryParameterName)
Returns inner errors when a custom query parameter is set to true.

Parameters:
queryParameterName - the custom parameter key

returnInnerErrorsBasedOnSystemProperty

public static final ErrorResponseExtension returnInnerErrorsBasedOnSystemProperty(String propertyName)
Returns inner errors when a system property is set to true.

Parameters:
propertyName - the system property key


http://odata4j.org