public class SearchContextImpl extends Object implements SearchContext
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_SEARCH_PARSER_CLASS_PROPERTY |
static String |
CUSTOM_SEARCH_PARSER_PROPERTY |
static String |
CUSTOM_SEARCH_QUERY_PARAM_NAME |
static String |
SEARCH_QUERY |
static String |
SHORT_SEARCH_QUERY |
Constructor and Description |
---|
SearchContextImpl(Message message) |
Modifier and Type | Method and 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 expression
|
String |
getSearchExpression()
Returns the search expression
|
public static final String SEARCH_QUERY
public static final String SHORT_SEARCH_QUERY
public static final String CUSTOM_SEARCH_PARSER_PROPERTY
public static final String CUSTOM_SEARCH_PARSER_CLASS_PROPERTY
public static final String CUSTOM_SEARCH_QUERY_PARAM_NAME
public SearchContextImpl(Message message)
public <T> SearchCondition<T> getCondition(Class<T> cls)
SearchContext
getCondition
in interface SearchContext
cls
- the type of the bean(s) the new search condition will
attempt to matchpublic <T> SearchCondition<T> getCondition(Class<T> cls, Map<String,String> beanProperties)
SearchContext
getCondition
in interface SearchContext
cls
- the type of the bean(s) the new search condition will
attempt to matchbeanProperties
- mapping between search and bean propertiespublic <T> SearchCondition<T> getCondition(Class<T> cls, Map<String,String> beanProperties, Map<String,String> parserProperties)
SearchContext
getCondition
in interface SearchContext
cls
- the type of the bean(s) the new search condition will
attempt to matchbeanProperties
- mapping between search and bean propertiesparserProperties
- parser propertiespublic <T> SearchCondition<T> getCondition(String expression, Class<T> cls)
SearchContext
getCondition
in interface SearchContext
expression
- the search expressioncls
- the type of the bean(s) the new search condition will
attempt to matchpublic <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String,String> beanProperties)
SearchContext
getCondition
in interface SearchContext
expression
- the search expressioncls
- the type of the bean(s) the new search condition will
attempt to matchbeanProperties
- mapping between search and bean propertiespublic <T> SearchCondition<T> getCondition(String expression, Class<T> cls, Map<String,String> beanProperties, Map<String,String> parserProperties)
SearchContext
getCondition
in interface SearchContext
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 propertiespublic String getSearchExpression()
SearchContext
getSearchExpression
in interface SearchContext
Apache CXF