|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.base.BaseService
public abstract class BaseService
BaseService acts as base class for any concrete API service. The
Service class generated may extend this class to make API calls through HTTP
| Field Summary | |
|---|---|
protected Map<String,String> |
configurationMap
|
| Constructor Summary | |
|---|---|
BaseService()
Default Constructor |
|
BaseService(InputStream inputStream)
Constructs BaseService using the supplied InputStream for
Properties configuration |
|
BaseService(Map<String,String> configurationMap)
Constructs BaseService using the supplied Map for
configuration |
|
BaseService(Properties properties)
Constructs BaseService using the supplied Properties for
configuration |
|
| Method Summary | |
|---|---|
protected String |
call(APICallPreHandler apiCallPrehandler)
Calls the APIService with the corresponding APICallPreHandler |
String |
getAccessToken()
Gets the Access Token |
String |
getLastRequest()
|
String |
getLastResponse()
|
String |
getTokenSecret()
Gets the Token Secret |
protected static void |
initConfig(File file)
Deprecated. |
protected static void |
initConfig(InputStream is)
Deprecated. |
protected static void |
initConfig(Properties properties)
Deprecated. |
protected static void |
initConfig(String filepath)
Deprecated. |
protected void |
initializeToDefault()
Initialize from sdk_config.properties |
void |
setAccessToken(String accessToken)
Deprecated. |
void |
setLastRequest(String lastRequest)
|
void |
setLastResponse(String lastResponse)
|
void |
setTokenSecret(String tokenSecret)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,String> configurationMap
| Constructor Detail |
|---|
public BaseService()
public BaseService(InputStream inputStream)
throws IOException
BaseService using the supplied InputStream for
Properties configuration
inputStream - Properties configuration stream
IOExceptionpublic BaseService(Properties properties)
BaseService using the supplied Properties for
configuration
properties - Configuration Propertiespublic BaseService(Map<String,String> configurationMap)
BaseService using the supplied Map for
configuration
configurationMap - Configuration Map| Method Detail |
|---|
public String getAccessToken()
public void setAccessToken(String accessToken)
accessToken - the accessToken to setpublic String getTokenSecret()
public void setTokenSecret(String tokenSecret)
tokenSecret - the tokenSecret to setpublic String getLastRequest()
public void setLastRequest(String lastRequest)
lastRequest - the lastRequest to setpublic String getLastResponse()
public void setLastResponse(String lastResponse)
lastResponse - the lastResponse to setprotected void initializeToDefault()
protected static void initConfig(InputStream is)
throws IOException
is -
IOException
protected static void initConfig(File file)
throws IOException
file -
IOException
protected static void initConfig(String filepath)
throws IOException
filepath -
IOExceptionprotected static void initConfig(Properties properties)
ConfigManager with the passed Properties
instance
properties - Properties instance
protected String call(APICallPreHandler apiCallPrehandler)
throws InvalidResponseDataException,
HttpErrorException,
ClientActionRequiredException,
InvalidCredentialException,
MissingCredentialException,
OAuthException,
SSLConfigurationException,
IOException,
InterruptedException
APICallPreHandler
apiCallPrehandler - APICallPreHandler instance
InvalidResponseDataException
HttpErrorException
ClientActionRequiredException
InvalidCredentialException
MissingCredentialException
OAuthException
SSLConfigurationException
IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||