org.exoplatform.social.client.core.service
Class QueryParamsImpl

java.lang.Object
  extended by org.exoplatform.social.client.core.service.QueryParamsImpl
All Implemented Interfaces:
QueryParams

public class QueryParamsImpl
extends Object
implements QueryParams

Implementation of QueryParams.

Since:
Oct 6, 2011, 1.0.0-alpha2
Author:
hoatle (hoatlevan at gmail dot com)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.exoplatform.social.client.api.service.QueryParams
QueryParams.QueryParamOption
 
Field Summary
 
Fields inherited from interface org.exoplatform.social.client.api.service.QueryParams
ACTIVITY_STREAM_PARAM, IDENTITY_ID_PARAM, LIMIT_PARAM, MAX_ID_PARAM, NUMBER_OF_COMMENTS_PARAM, NUMBER_OF_LIKES_PARAM, POSTER_IDENTITY_PARAM, SINCE_ID_PARAM
 
Constructor Summary
QueryParamsImpl()
           
 
Method Summary
 QueryParams append(QueryParams.QueryParamOption param)
          Append the query parameter for build URL Request.
 String buildQuery()
          Builds the query string based on the setted value.
 void clear()
          Clear all of Query Parameters.
 QueryParams.QueryParamOption get(QueryParams.QueryParamOption param)
          Gets QueryParamOption which was existing.
 QueryParams remove(QueryParams.QueryParamOption param)
          Removes the query parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParamsImpl

public QueryParamsImpl()
Method Detail

append

public QueryParams append(QueryParams.QueryParamOption param)
Description copied from interface: QueryParams
Append the query parameter for build URL Request.

Specified by:
append in interface QueryParams
Returns:

remove

public QueryParams remove(QueryParams.QueryParamOption param)
Description copied from interface: QueryParams
Removes the query parameter.

Specified by:
remove in interface QueryParams
Returns:

buildQuery

public String buildQuery()
Description copied from interface: QueryParams
Builds the query string based on the setted value. For example output: limit=20&since_id=1234&number_of_comments=7

Specified by:
buildQuery in interface QueryParams
Returns:

clear

public void clear()
Description copied from interface: QueryParams
Clear all of Query Parameters.

Specified by:
clear in interface QueryParams

get

public QueryParams.QueryParamOption get(QueryParams.QueryParamOption param)
Description copied from interface: QueryParams
Gets QueryParamOption which was existing.

Specified by:
get in interface QueryParams
Returns:


Copyright © 2011 eXo Platform. All Rights Reserved.