com.simpleyql
Class QueryResultImpl

java.lang.Object
  extended by com.simpleyql.QueryResultImpl
All Implemented Interfaces:
QueryResult

public class QueryResultImpl
extends java.lang.Object
implements QueryResult

Information returned by an API call

Author:
chester

Constructor Summary
QueryResultImpl()
           
 
Method Summary
 java.lang.String getAuthdata()
          The token used for this request.
 java.lang.String getText()
          The response from the server
 void setAuthdata(java.lang.String token)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultImpl

public QueryResultImpl()
Method Detail

getText

public java.lang.String getText()
Description copied from interface: QueryResult
The response from the server

Specified by:
getText in interface QueryResult
Returns:
Raw text from the response

setText

public void setText(java.lang.String text)

getAuthdata

public java.lang.String getAuthdata()
Description copied from interface: QueryResult
The token used for this request. If this value is different from the token passed to the API, application should store the new token for future calls.

Specified by:
getAuthdata in interface QueryResult
Returns:
If not expired, the same token received when the API was called, otherwise the renewed token.

setAuthdata

public void setAuthdata(java.lang.String token)


Copyright © 2009. All Rights Reserved.