Package org.apache.cxf.jaxrs.ext.search
Class SearchContextImpl
java.lang.Object
org.apache.cxf.jaxrs.ext.search.SearchContextImpl
- All Implemented Interfaces:
SearchContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> SearchCondition<T>getCondition(Class<T> cls) Returns the typed search condition representing the search expression which is extracted from the request URI<T> SearchCondition<T>getCondition(Class<T> cls, Map<String, String> beanProperties) Returns the typed search condition representing the search expression which is extracted from the request URI<T> SearchCondition<T>Returns the typed search condition representing the search expression which is extracted from the request URI<T> SearchCondition<T>getCondition(String expression, Class<T> cls) Returns the typed search condition representing the provided search expression<T> SearchCondition<T>Returns the typed search condition representing the provided search expression<T> SearchCondition<T>getCondition(String expression, Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) Returns the typed search condition representing the provided search expressionReturns the search expression
-
Field Details
-
SEARCH_QUERY
- See Also:
-
SHORT_SEARCH_QUERY
- See Also:
-
CUSTOM_SEARCH_PARSER_PROPERTY
- See Also:
-
CUSTOM_SEARCH_PARSER_CLASS_PROPERTY
- See Also:
-
CUSTOM_SEARCH_QUERY_PARAM_NAME
- See Also:
-
-
Constructor Details
-
SearchContextImpl
public SearchContextImpl(org.apache.cxf.message.Message message)
-
-
Method Details
-
getCondition
Description copied from interface:SearchContextReturns the typed search condition representing the search expression which is extracted from the request URI- Specified by:
getConditionin interfaceSearchContext- Parameters:
cls- the type of the bean(s) the new search condition will attempt to match- Returns:
- the search condition
-
getCondition
Description copied from interface:SearchContextReturns the typed search condition representing the search expression which is extracted from the request URI- Specified by:
getConditionin interfaceSearchContext- Parameters:
cls- the type of the bean(s) the new search condition will attempt to matchbeanProperties- mapping between search and bean properties- Returns:
- the search condition
-
getCondition
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) Description copied from interface:SearchContextReturns the typed search condition representing the search expression which is extracted from the request URI- Specified by:
getConditionin interfaceSearchContext- Parameters:
cls- the type of the bean(s) the new search condition will attempt to matchbeanProperties- mapping between search and bean propertiesparserProperties- parser properties- Returns:
- the search condition
-
getCondition
Description copied from interface:SearchContextReturns the typed search condition representing the provided search expression- Specified by:
getConditionin interfaceSearchContext- Parameters:
expression- the search expressioncls- the type of the bean(s) the new search condition will attempt to match- Returns:
- the search condition
-
getCondition
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String, String> beanProperties) Description copied from interface:SearchContextReturns the typed search condition representing the provided search expression- Specified by:
getConditionin interfaceSearchContext- Parameters:
expression- the search expressioncls- the type of the bean(s) the new search condition will attempt to matchbeanProperties- mapping between search and bean properties- Returns:
- the search condition
-
getCondition
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String, String> beanProperties, Map<String, String> parserProperties) Description copied from interface:SearchContextReturns the typed search condition representing the provided search expression- Specified by:
getConditionin interfaceSearchContext- Parameters:
expression- the search expressioncls- the type of the bean(s) the new search condition will attempt to matchbeanProperties- mapping between search and bean propertiesparserProperties- parser properties- Returns:
- the search condition
-
getSearchExpression
Description copied from interface:SearchContextReturns the search expression- Specified by:
getSearchExpressionin interfaceSearchContext- Returns:
- the expression which is extracted from the request URI, can be null
-