Package org.apache.cxf.jaxrs.ext.search
Class SearchContextImpl
- java.lang.Object
-
- org.apache.cxf.jaxrs.ext.search.SearchContextImpl
-
- All Implemented Interfaces:
SearchContext
public class SearchContextImpl extends Object implements SearchContext
-
-
Field Summary
Fields Modifier and Type Field Description static StringCUSTOM_SEARCH_PARSER_CLASS_PROPERTYstatic StringCUSTOM_SEARCH_PARSER_PROPERTYstatic StringCUSTOM_SEARCH_QUERY_PARAM_NAMEstatic StringSEARCH_QUERYstatic StringSHORT_SEARCH_QUERY
-
Constructor Summary
Constructors Constructor Description SearchContextImpl(Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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>getCondition(Class<T> cls, Map<String,String> beanProperties, Map<String,String> parserProperties)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>getCondition(String expression, Class<T> cls, Map<String,String> beanProperties)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 expressionStringgetSearchExpression()Returns the search expression
-
-
-
Field Detail
-
SEARCH_QUERY
public static final String SEARCH_QUERY
- See Also:
- Constant Field Values
-
SHORT_SEARCH_QUERY
public static final String SHORT_SEARCH_QUERY
- See Also:
- Constant Field Values
-
CUSTOM_SEARCH_PARSER_PROPERTY
public static final String CUSTOM_SEARCH_PARSER_PROPERTY
- See Also:
- Constant Field Values
-
CUSTOM_SEARCH_PARSER_CLASS_PROPERTY
public static final String CUSTOM_SEARCH_PARSER_CLASS_PROPERTY
- See Also:
- Constant Field Values
-
CUSTOM_SEARCH_QUERY_PARAM_NAME
public static final String CUSTOM_SEARCH_QUERY_PARAM_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchContextImpl
public SearchContextImpl(Message message)
-
-
Method Detail
-
getCondition
public <T> SearchCondition<T> getCondition(Class<T> cls)
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
public <T> SearchCondition<T> getCondition(Class<T> cls, Map<String,String> beanProperties)
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
public <T> SearchCondition<T> getCondition(String expression, Class<T> cls)
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
public String 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
-
-