public class PaginationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PaginationUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyPaginationContext(org.apache.axis2.client.ServiceClient serviceClient)
Copy the pagination context details to ServiceClient.
|
static int |
getRowCount(org.apache.axis2.client.ServiceClient client) |
static PaginationContext |
initPaginationContext(org.apache.axis2.context.MessageContext messageContext)
Create PaginationContext from MessageContext
|
static boolean |
isPaginationAnnotationFound(String annotation)
Check the resource get method is paginated or not.
|
static boolean |
isPaginationHeadersExist(org.apache.axis2.context.MessageContext messageContext)
Check the availability of the pagination details in messageContext.
|
static void |
setRowCount(org.apache.axis2.context.MessageContext messageContext,
String count)
Set row count to messageContext as property.
|
public static void copyPaginationContext(org.apache.axis2.client.ServiceClient serviceClient) throws org.apache.axis2.AxisFault
serviceClient
- ServiceClientorg.apache.axis2.AxisFault
- if failed to pagination detailspublic static PaginationContext initPaginationContext(org.apache.axis2.context.MessageContext messageContext)
messageContext
- MessageContextpublic static boolean isPaginationHeadersExist(org.apache.axis2.context.MessageContext messageContext)
messageContext
- MessageContextpublic static boolean isPaginationAnnotationFound(String annotation)
annotation
- method annotation namepublic static void setRowCount(org.apache.axis2.context.MessageContext messageContext, String count)
messageContext
- MessageContextcount
- row count for paginationpublic static int getRowCount(org.apache.axis2.client.ServiceClient client) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
Copyright © 2015 WSO2 Inc. All Rights Reserved.