public class PageConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PageConfig.MetadataLocations |
| Constructor and Description |
|---|
PageConfig() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLimitValue()
LimitValue is the maximum number of results the server should return
(default: 10)
|
MetadataLocation |
getMetadataLocation()
MetadataLocation indicates whether paging information is received from
the response header, the response body (body) or via RFC 5988
(webLinking), which is the default
|
String |
getNextIdentifier()
NextIdentifier names the element containing data for the next page
(default: next)
|
String |
getOffsetValue()
OffsetValue is the offset of the first element that should be included in
the returned collection (default: 0)
|
PageParameterExtractor |
getPageParameterExtractor()
PageParameterExtractor is the a
PageParameterExtractor which
parses the response and provides data to a Pipe for the "next" and
"previous" pages. |
ParameterProvider |
getParameterProvider()
The
ParameterProvider for paging. |
String |
getPreviousIdentifier()
PreviousIdentifier names the element containing data for the previous
page (default: previous)
|
void |
setLimitValue(Integer limitValue)
LimitValue is the maximum number of results the server should return
(default: 10)
|
void |
setMetadataLocation(MetadataLocation metadataLocation)
MetadataLocation indicates whether paging information is received from
the response header, the response body (body) or via RFC 5988
(webLinking), which is the default
|
void |
setNextIdentifier(String nextIdentifier)
NextIdentifier names the element containing data for the next page
(default: next)
|
void |
setOffsetValue(String offsetValue)
OffsetValue is the offset of the first element that should be included in
the returned collection (default: 0)
|
void |
setPageParameterExtractor(PageParameterExtractor pageParameterExtractor)
PageParameterExtractor is the a
PageParameterExtractor which
parses the response and provides data to a Pipe for the "next" and
"previous" pages. |
void |
setParameterProvider(ParameterProvider parameterProvider)
The
ParameterProvider for paging. |
void |
setPreviousIdentifier(String previousIdentifier)
PreviousIdentifier names the element containing data for the previous
page (default: previous)
|
public MetadataLocation getMetadataLocation()
public void setMetadataLocation(MetadataLocation metadataLocation)
metadataLocation - a different metaDataLocationpublic String getNextIdentifier()
public void setNextIdentifier(String nextIdentifier)
public String getPreviousIdentifier()
public void setPreviousIdentifier(String previousIdentifier)
previousIdentifier - public String getOffsetValue()
public void setOffsetValue(String offsetValue)
offsetValue - public Integer getLimitValue()
public void setLimitValue(Integer limitValue)
limitValue - a new Limit valuepublic ParameterProvider getParameterProvider()
ParameterProvider for paging. Defaults to
DefaultParameterProviderpublic void setParameterProvider(ParameterProvider parameterProvider)
ParameterProvider for paging. Defaults to
DefaultParameterProviderparameterProvider - a new providerpublic PageParameterExtractor getPageParameterExtractor()
PageParameterExtractor which
parses the response and provides data to a Pipe for the "next" and
"previous" pages.
The default value depends on the current setting of MetadataLocation.public void setPageParameterExtractor(PageParameterExtractor pageParameterExtractor)
PageParameterExtractor which
parses the response and provides data to a Pipe for the "next" and
"previous" pages.
The default value depends on the current setting of MetadataLocation.pageParameterExtractor - an new ExtractorCopyright © 2013 JBoss by Red Hat. All Rights Reserved.