public class GetRequestChecker
extends java.lang.Object
GetRequest
.Constructor and Description |
---|
GetRequestChecker() |
Modifier and Type | Method and Description |
---|---|
static int |
checkLimit(int limit)
Checks whether the number of documents to return is between 0 and the
maximum.
|
static ListDocumentsParams |
checkListDocumentsParams(ListDocumentsParams params)
Checks the values of the
ListDocumentsParams params. |
static java.lang.String |
checkStartDocId(java.lang.String startDocId)
Checks whether the given start document Is legal.
|
public static int checkLimit(int limit)
limit
- the maximum number of documents to return in results listjava.lang.IllegalArgumentException
- if the number of documents to return
is out of rangepublic static java.lang.String checkStartDocId(java.lang.String startDocId)
startDocId
- the start ocument Id to be checked.java.lang.IllegalArgumentException
- if the start document Id is illegal.public static ListDocumentsParams checkListDocumentsParams(ListDocumentsParams params)
ListDocumentsParams
params.params
- The ListDocumentsParams
to checkjava.lang.IllegalArgumentException
- if some of the values of params are
invalid