|
Changes since the last release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebay.sdk.ApiContext
public class ApiContext
Defines API context under which the API call will be made. To successfully make eBay API call, you need both API account and a normal eBay account. ApiContext also controls additional things like logging, CallRetry etc.
If you use eBay token as credential to make the API call you only need
to set the eBayToken property. Otherwise you need to use setApiAccount() and
seteBayAccount() together to set the account credential for the API call.
View UML diagram of the class.
Title:
Description:
Copyright: Copyright (c) 2004 - 2007
Company: eBay Inc.
| Constructor Summary | |
|---|---|
ApiContext()
Constructor. |
|
| Method Summary | |
|---|---|
ApiCredential |
getApiCredential()
Get the ApiAccount to use. |
ApiLogging |
getApiLogging()
Gets the ApiLogging property. |
String |
getApiServerUrl()
Get URL of the eBay API server to which the API call will be made. |
CallRetry |
getCallRetry()
Get the CallRetry object. |
String |
getEpsServerUrl()
Returns the epsServerUrl. |
String |
getErrorLanguage()
Get language string to return error. |
String |
getRequestXml()
|
String |
getResponseXml()
|
String |
getRouting()
Returns the routing. |
String |
getSignInUrl()
Get SignIn Url. |
SiteCodeType |
getSite()
Gets the site for API calls under the context. |
int |
getTimeout()
Get timeout for HTTP connection. |
int |
getTotalCalls()
Get total number of API calls that have been made with the ApiContext object. |
String |
getWSDLVersion()
Gets the version of WSDL version to be used. |
int |
incrementTotalCalls()
Increase number of total calls by one. |
void |
setApiCredential(ApiCredential apiCredential)
Set the ApiCredential to use. |
void |
setApiLogging(ApiLogging apiLogging)
Sets the ApiLogging property. |
void |
setApiServerUrl(String url)
Set the URL of the eBay API server to which the API call will be made. |
void |
setCallRetry(CallRetry callRetry)
Set the CallRetry object to be used to control the retry behaviour of calls. |
void |
setEpsServerUrl(String epsServerUrl)
Sets the epsServerUrl. |
void |
setErrorLanguage(String errorLanguage)
Set the error language string. |
void |
setRequestXml(String requestXml)
|
void |
setResponseXml(String responseXml)
|
void |
setRouting(String routing)
Sets the gateway routing. |
void |
setSignInUrl(String url)
Set SignIn Url. |
void |
setSite(SiteCodeType site)
Sets the common eBay site that for all the APIs calls made with the ApiContext object. |
void |
setTimeout(int timeout)
Set timeout of HTTP connection. |
void |
setTotalCalls(int totalCalls)
Set total number of API calls made with the ApiContext object. |
void |
setWSDLVersion(String wsdlVersion)
Sets the version of WSDL version to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApiContext()
| Method Detail |
|---|
public int getTimeout()
public void setTimeout(int timeout)
timeout - the timeout value to set. In milliseconds.public String getApiServerUrl()
public void setApiServerUrl(String url)
url - The URL string to set.public String getSignInUrl()
public void setSignInUrl(String url)
public ApiCredential getApiCredential()
public void setApiCredential(ApiCredential apiCredential)
apiCredential - the ApiCredential instance to be set to.public String getErrorLanguage()
public void setErrorLanguage(String errorLanguage)
errorLanguage - the error language string to be set to.public ApiLogging getApiLogging()
public void setApiLogging(ApiLogging apiLogging)
apiLogging - ApiLoggingpublic CallRetry getCallRetry()
public void setCallRetry(CallRetry callRetry)
callRetry - the CallRetry object to use.public int getTotalCalls()
public void setTotalCalls(int totalCalls)
totalCalls - Total number of calls to be set to.public int incrementTotalCalls()
public String getEpsServerUrl()
public void setRouting(String routing)
routing - The routing to setpublic String getRouting()
public void setEpsServerUrl(String epsServerUrl)
epsServerUrl - The epsServerUrl to setpublic SiteCodeType getSite()
public void setSite(SiteCodeType site)
site - SiteCodeTypepublic String getWSDLVersion()
public void setWSDLVersion(String wsdlVersion)
wsdlVersion - Stringpublic String getRequestXml()
public void setRequestXml(String requestXml)
public String getResponseXml()
public void setResponseXml(String responseXml)
|
Changes since the last release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations:developer-relations@ebay.com
© 2004-2006 eBay Inc. All rights reserved.