com.google.appengine.api.search.checkers
Class CursorChecker

java.lang.Object
  extended by com.google.appengine.api.search.checkers.CursorChecker

public final class CursorChecker
extends java.lang.Object

Checks values of Cursor.


Field Summary
static int MAXIMUM_CURSOR_LENGTH
          The maximum length of a cursor.
 
Constructor Summary
CursorChecker()
           
 
Method Summary
static java.lang.String checkCursor(java.lang.String cursor)
          Checks the cursor string if provided is not empty nor too long.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_CURSOR_LENGTH

public static final int MAXIMUM_CURSOR_LENGTH
The maximum length of a cursor.

See Also:
Constant Field Values
Constructor Detail

CursorChecker

public CursorChecker()
Method Detail

checkCursor

public static java.lang.String checkCursor(java.lang.String cursor)
Checks the cursor string if provided is not empty nor too long.

Parameters:
cursor - the search cursor to check
Returns:
the checked cursor
Throws:
java.lang.IllegalArgumentException - if the cursor is empty or is too long