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
NameDescription
limitint

the maximum number of documents to return in results list

Returns
TypeDescription
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
NameDescription
paramscom.google.appengine.api.search.proto.SearchServicePb.ListDocumentsParams

The ListDocumentsParams to check

Returns
TypeDescription
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
NameDescription
startDocIdString

the start ocument Id to be checked.

Returns
TypeDescription
String

the checked start document Id.

Constructors

GetRequestChecker()

public GetRequestChecker()