* Gets query request based on the criteria.
* @param criteria criteria
* @return query request
*/
public ExtendedQueryRequest getQueryRequest(Criteria criteria) {
ExtendedQueryRequest queryRequest = new ExtendedQueryRequest();
queryRequest.setService(info.newService());
queryRequest.setCredentials(info.newCredentials());
queryRequest.setBBox(criteria!=null? criteria.getBBox(): null);
queryRequest.setSpatialOperator(criteria!=null? convertBBoxOptions(criteria.getBBoxOption()): null);
queryRequest.setFullText(criteria!=null && criteria.getSearchText()!=null? criteria.getSearchText().split(" "): null);
queryRequest.setMaxRec(criteria!=null && criteria.getMaxRecords()!=null? criteria.getMaxRecords(): 0);
return queryRequest;
}