Class SearchContextImpl

java.lang.Object
org.apache.cxf.jaxrs.ext.search.SearchContextImpl
All Implemented Interfaces:
SearchContext

public class SearchContextImpl extends Object implements SearchContext
  • Field Details

  • Constructor Details

    • SearchContextImpl

      public SearchContextImpl(org.apache.cxf.message.Message message)
  • Method Details

    • getCondition

      public <T> SearchCondition<T> getCondition(Class<T> cls)
      Description copied from interface: SearchContext
      Returns the typed search condition representing the search expression which is extracted from the request URI
      Specified by:
      getCondition in interface SearchContext
      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: SearchContext
      Returns the typed search condition representing the search expression which is extracted from the request URI
      Specified by:
      getCondition in interface SearchContext
      Parameters:
      cls - the type of the bean(s) the new search condition will attempt to match
      beanProperties - 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: SearchContext
      Returns the typed search condition representing the search expression which is extracted from the request URI
      Specified by:
      getCondition in interface SearchContext
      Parameters:
      cls - the type of the bean(s) the new search condition will attempt to match
      beanProperties - mapping between search and bean properties
      parserProperties - parser properties
      Returns:
      the search condition
    • getCondition

      public <T> SearchCondition<T> getCondition(String expression, Class<T> cls)
      Description copied from interface: SearchContext
      Returns the typed search condition representing the provided search expression
      Specified by:
      getCondition in interface SearchContext
      Parameters:
      expression - the search expression
      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(String expression, Class<T> cls, Map<String,String> beanProperties)
      Description copied from interface: SearchContext
      Returns the typed search condition representing the provided search expression
      Specified by:
      getCondition in interface SearchContext
      Parameters:
      expression - the search expression
      cls - the type of the bean(s) the new search condition will attempt to match
      beanProperties - 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: SearchContext
      Returns the typed search condition representing the provided search expression
      Specified by:
      getCondition in interface SearchContext
      Parameters:
      expression - the search expression
      cls - the type of the bean(s) the new search condition will attempt to match
      beanProperties - mapping between search and bean properties
      parserProperties - parser properties
      Returns:
      the search condition
    • getSearchExpression

      public String getSearchExpression()
      Description copied from interface: SearchContext
      Returns the search expression
      Specified by:
      getSearchExpression in interface SearchContext
      Returns:
      the expression which is extracted from the request URI, can be null