Last change
on this file since 5893 was
5893,
checked in by emanuel.dima@uni-tuebingen.de, 9 years ago
|
switching to throttled client with statistics, work in progress; more UI improvements
|
File size:
898 bytes
|
Line | |
---|
1 | package eu.clarin.sru.fcs.aggregator.search; |
---|
2 | |
---|
3 | import eu.clarin.sru.fcs.aggregator.scan.Corpus; |
---|
4 | import java.util.logging.Logger; |
---|
5 | |
---|
6 | /** |
---|
7 | * @author edima |
---|
8 | */ |
---|
9 | |
---|
10 | public class Request { |
---|
11 | private static final Logger LOGGER = Logger.getLogger(Request.class.getName()); |
---|
12 | |
---|
13 | private Corpus corpus; |
---|
14 | private String searchString; |
---|
15 | private int startRecord; |
---|
16 | private int endRecord; |
---|
17 | |
---|
18 | public Request(Corpus corpus, String searchString, int startRecord, int endRecord) { |
---|
19 | this.corpus = corpus; |
---|
20 | this.searchString = searchString; |
---|
21 | this.startRecord = startRecord; |
---|
22 | this.endRecord = endRecord; |
---|
23 | } |
---|
24 | |
---|
25 | public int getStartRecord() { |
---|
26 | return startRecord; |
---|
27 | } |
---|
28 | |
---|
29 | public int getEndRecord() { |
---|
30 | return endRecord; |
---|
31 | } |
---|
32 | |
---|
33 | public Corpus getCorpus() { |
---|
34 | return corpus; |
---|
35 | } |
---|
36 | |
---|
37 | public String getSearchString() { |
---|
38 | return searchString; |
---|
39 | } |
---|
40 | |
---|
41 | public boolean hasCorpusHandler() { |
---|
42 | return corpus != null && corpus.getHandle() != null; |
---|
43 | } |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.