|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.odata4j.producer.ErrorResponseExtensions
public class ErrorResponseExtensions
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 |
---|
public static final String ODATA4J_DEBUG
returnInnerErrorsBasedOnDefaultSystemProperty()
,
returnInnerErrorsBasedOnDefaultQueryParameter()
,
Constant Field ValuesConstructor Detail |
---|
public ErrorResponseExtensions()
Method Detail |
---|
public static final ErrorResponseExtension returnInnerErrors()
public static final ErrorResponseExtension returnInnerErrorsBasedOnDefaultQueryParameter()
true
.
ODATA4J_DEBUG
public static final ErrorResponseExtension returnInnerErrorsBasedOnDefaultSystemProperty()
true
.
ODATA4J_DEBUG
public static final ErrorResponseExtension returnInnerErrorsBasedOnQueryParameter(String queryParameterName)
true
.
queryParameterName
- the custom parameter keypublic static final ErrorResponseExtension returnInnerErrorsBasedOnSystemProperty(String propertyName)
true
.
propertyName
- the system property key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |