Class GetRequestChecker (2.0.0)

public class GetRequestChecker

Inheritance

java.lang.Object > GetRequestChecker

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 int

the 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.ListDocumentsParams

The 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 String

the start ocument Id to be checked.

Returns
Type Description
String

the checked start document Id.

Constructors

GetRequestChecker()

public GetRequestChecker()