public class DefaultListOperation<T> extends EntityOperationBase implements EntityListOperation<T>
EntityOperationBase.EntityIdUriBuilder, EntityOperationBase.EntityUriBuilder| Constructor and Description |
|---|
DefaultListOperation(String entityUri,
com.sun.jersey.api.client.GenericType<ListResult<T>> responseType) |
DefaultListOperation(String entityUri,
com.sun.jersey.api.client.GenericType<ListResult<T>> responseType,
javax.ws.rs.core.MultivaluedMap<String,String> queryParameters) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParameters()
Get query parameters to add to the uri
|
com.sun.jersey.api.client.GenericType<ListResult<T>> |
getResponseGenericType()
Get a GenericType object representing the result list type
|
Object |
processResponse(Object rawResponse)
Process response process.
|
DefaultListOperation<T> |
set(String parameterName,
String parameterValue)
Add an arbitrary query parameter
|
DefaultListOperation<T> |
setSkip(int skipValue)
Add a "$skip" query parameter to set the number of values to skip
|
DefaultListOperation<T> |
setTop(int topValue)
Add a "$top" query parameter to set the number of values to return
|
getAcceptType, getContentType, getProxyData, getUri, setProxyDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptType, getContentType, getUri, setProxyDatapublic DefaultListOperation(String entityUri, com.sun.jersey.api.client.GenericType<ListResult<T>> responseType)
public DefaultListOperation(String entityUri, com.sun.jersey.api.client.GenericType<ListResult<T>> responseType, javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)
public DefaultListOperation<T> setTop(int topValue)
topValue - number of values to returnpublic DefaultListOperation<T> setSkip(int skipValue)
skipValue - the number of values to skippublic DefaultListOperation<T> set(String parameterName, String parameterValue)
parameterName - name of query parameterparameterValue - value for query parameterpublic javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
EntityListOperationgetQueryParameters in interface EntityListOperation<T>public com.sun.jersey.api.client.GenericType<ListResult<T>> getResponseGenericType()
EntityListOperationgetResponseGenericType in interface EntityListOperation<T>public Object processResponse(Object rawResponse) throws ServiceException
EntityOperationprocessResponse in interface EntityOperationprocessResponse in class EntityOperationBaserawResponse - the raw responseServiceException - the service exception/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/