@Qualifier @Documented @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface Paginated
| Modifier and Type | Optional Element and Description |
|---|---|
String |
customHeadersPrefix
The prefix to be used when custom HTTP response headers are used to provide link to next/previous.
|
int |
defaultLimit
The value to be used as the default 'limit' if no query parameter by the name specified in 'limitParamName' is included
in the HTTP Request.
|
int |
defaultOffset
The value to be used as the default 'offset' if no query parameter by the name specified in 'offsetParamName' is included
in the HTTP Request.
|
String |
limitParamName
The name of query parameter that will be used as the 'limit' in a pagination strategy using offset/limit.
|
String |
offsetParamName
The name of query parameter that will be used as the 'offset' in a pagination strategy using offset/limit.
|
boolean |
webLinking
Determines if Web Linking should be used.
|
public abstract String offsetParamName
String the name of the query parameter used for the 'offset'. If not specified defaults to 'offset'.public abstract int defaultOffset
int the value to be used as the default 'offset' if no query parameter named 'offsetParamName' was
included in the request.public abstract String limitParamName
String the name of the query parameter used for the 'limit'. If not specified defaults to 'limit'.public abstract int defaultLimit
int the value to be used as the default 'limit' if no query parameter named 'limitParamName' was included
in the request.public abstract String customHeadersPrefix
XYZ-Links-Next "http://server/app/resource?offset=5?limit=5" XYZ-Links-Previous "http://server/app/resource?offset=0?limit=5"Note, that this value is only used when Web Linking is disabled (webLinking = false).
String the prefix to be used for next/previous HTTP response headers. Defaults to 'AG-'.public abstract boolean webLinking
true if Web Linking should be used, or false if custom HTTP headers should be used.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.