Package org.yamcs.http.api
Class NamedObjectPageToken
- java.lang.Object
-
- org.yamcs.http.api.NamedObjectPageToken
-
public class NamedObjectPageToken extends Object
Stateless continuation token for paged MDB requests.
-
-
Field Summary
Fields Modifier and Type Field Description StringnameQualified name of the last object that was emitted.booleanspaceSystemWhether this represents a space system.
-
Constructor Summary
Constructors Constructor Description NamedObjectPageToken(String name, boolean spaceSystem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedObjectPageTokendecode(String encoded)StringencodeAsString()
-
-
-
Field Detail
-
name
public String name
Qualified name of the last object that was emitted.Consuming routes should not assume that this name still exists, and rather do an alphabetic comparison (this also implies that the endpoint should return results in alphabetic order.
-
spaceSystem
public boolean spaceSystem
Whether this represents a space system. Pagination is based on an ordering where space systems are returned before the actual items.
-
-
Constructor Detail
-
NamedObjectPageToken
public NamedObjectPageToken(String name, boolean spaceSystem)
-
-
Method Detail
-
decode
public static NamedObjectPageToken decode(String encoded)
-
encodeAsString
public String encodeAsString()
-
-