org.yestech.rpx
Class DefaultRPXClient

java.lang.Object
  extended by org.yestech.rpx.DefaultRPXClient
All Implemented Interfaces:
RPXClient

public class DefaultRPXClient
extends Object
implements RPXClient

Author:
A.J. Wright

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.yestech.rpx.RPXClient
RPXClient.Provider
 
Constructor Summary
DefaultRPXClient(String apiKey, String realm)
           
 
Method Summary
 AuthInfoResponse authInfo(String token, boolean extended)
           
 String buildAuthRedirect(RPXAuthProvider provider, String tokenUrl)
           
 String buildAuthRedirect(RPXClient.Provider provider, String tokenUrl)
           
 GetContactsResponse getContacts(String identifier)
           
protected  org.apache.commons.httpclient.HttpClient getHttpClient()
           
 MappingsResponse getMappings(String primaryKey)
           
 RPXStat map(String identifier, String primaryKey, boolean overwrite)
           
 void setStatus(String identifier, String status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRPXClient

public DefaultRPXClient(String apiKey,
                        String realm)
Method Detail

authInfo

public AuthInfoResponse authInfo(String token,
                                 boolean extended)
                          throws IOException,
                                 org.json.JSONException,
                                 RPXException
Specified by:
authInfo in interface RPXClient
Throws:
IOException
org.json.JSONException
RPXException

map

public RPXStat map(String identifier,
                   String primaryKey,
                   boolean overwrite)
            throws IOException,
                   org.json.JSONException,
                   RPXException
Specified by:
map in interface RPXClient
Throws:
IOException
org.json.JSONException
RPXException

getMappings

public MappingsResponse getMappings(String primaryKey)
                             throws IOException,
                                    org.json.JSONException,
                                    RPXException
Throws:
IOException
org.json.JSONException
RPXException

getContacts

public GetContactsResponse getContacts(String identifier)
                                throws org.json.JSONException,
                                       IOException,
                                       RPXException
Specified by:
getContacts in interface RPXClient
Throws:
org.json.JSONException
IOException
RPXException

buildAuthRedirect

public String buildAuthRedirect(RPXClient.Provider provider,
                                String tokenUrl)
                         throws IOException
Specified by:
buildAuthRedirect in interface RPXClient
Throws:
IOException

setStatus

public void setStatus(String identifier,
                      String status)
               throws IOException,
                      org.json.JSONException,
                      RPXException
Specified by:
setStatus in interface RPXClient
Throws:
IOException
org.json.JSONException
RPXException

buildAuthRedirect

public String buildAuthRedirect(RPXAuthProvider provider,
                                String tokenUrl)
Specified by:
buildAuthRedirect in interface RPXClient

getHttpClient

protected org.apache.commons.httpclient.HttpClient getHttpClient()


Copyright © 2010 YES Technology Association. All Rights Reserved.