public class GetRequestCheckerChecks values of com.google.appengine.api.search.GetRequest.
Static Methods
checkLimit(int limit)
public static int checkLimit(int limit)Checks whether the number of documents to return is between 0 and the maximum.
| Parameter | |
|---|---|
| Name | Description |
limit |
intthe maximum number of documents to return in results list |
| Returns | |
|---|---|
| Type | Description |
int |
the checked number of documents to return |
checkListDocumentsParams(SearchServicePb.ListDocumentsParams params)
public static SearchServicePb.ListDocumentsParams checkListDocumentsParams(SearchServicePb.ListDocumentsParams params)Checks the values of the ListDocumentsParams params.
| Parameter | |
|---|---|
| Name | Description |
params |
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParamsThe ListDocumentsParams to check |
| Returns | |
|---|---|
| Type | Description |
com.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams |
the checked params |
checkStartDocId(String startDocId)
public static String checkStartDocId(String startDocId)Checks whether the given start document Is legal.
| Parameter | |
|---|---|
| Name | Description |
startDocId |
Stringthe start ocument Id to be checked. |
| Returns | |
|---|---|
| Type | Description |
String |
the checked start document Id. |
Constructors
GetRequestChecker()
public GetRequestChecker()