Changeset 2680
- Timestamp:
- 03/12/13 17:12:42 (11 years ago)
- Location:
- SRUServer/trunk/src/main/java/eu/clarin/sru/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUServer/trunk/src/main/java/eu/clarin/sru/server/SRURequest.java
r2623 r2680 102 102 /** 103 103 * Get the <em>startRecord</em> parameter of this request. Only available 104 * for <em>searchRetrieve</em> requests. 105 * 106 * @return the number of the start record or <code>-1</code> if no value was107 * supplied for this request104 * for <em>searchRetrieve</em> requests. If the client did not provide 105 * a value for the request, it is set to <code>1</code>. 106 * 107 * @return the number of the start record 108 108 */ 109 109 public int getStartRecord(); … … 185 185 /** 186 186 * Get the <em>responsePosition</em> parameter of this request. Only 187 * available for <em>scan</em> requests. 188 * 189 * @return the response position or <code>-1</code> if no value was supplied190 * for this request187 * available for <em>scan</em> requests. If the client did not provide 188 * a value for the request, it is set to <code>1</code>. 189 * 190 * @return the response position 191 191 */ 192 192 public int getResponsePosition(); -
SRUServer/trunk/src/main/java/eu/clarin/sru/server/SRURequestImpl.java
r2679 r2680 55 55 private static final String X_UNLIMITED_RESULTSET = "x-unlimited-resultset"; 56 56 private static final String X_INDENT_RESPONSE = "x-indent-response"; 57 private static final int DEFAULT_START_RECORD = 1; 58 private static final int DEFAULT_RESPONSE_POSITION = 1; 57 59 private final SRUServerConfig config; 58 60 private final HttpServletRequest request; … … 63 65 private CQLNode query; 64 66 private String rawQuery; 65 private int startRecord = -1;67 private int startRecord = DEFAULT_START_RECORD; 66 68 private int maximumRecords = -1; 67 69 private String recordSchemaName; … … 69 71 private String stylesheet; 70 72 private String recordXPath; 71 private int resultSetTTL 73 private int resultSetTTL = -1; 72 74 private String sortKeys; 73 75 private CQLNode scanClause; 74 76 private String rawScanClause; 75 private int responsePosition = -1;77 private int responsePosition = DEFAULT_RESPONSE_POSITION; 76 78 private int maximumTerms = -1; 77 79
Note: See TracChangeset
for help on using the changeset viewer.