Package paypal.payflow
Class ClientInfo
java.lang.Object
paypal.payflow.ClientInfo
This class is used to store the Payflow Client related properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddHeaderToHash(String headerName, Object headerValue) Adds a header to the header hash tableprotected voidprotected HashtableGets the client info hash tableGets Client Typegets the clientVersionprotected Contextprotected ObjectgetHeaderFromHash(String headerName) Gets a header value from hashprotected StringGets integration productprotected StringGets integration versionprotected StringGets the OS architectureprotected StringGets the OS Nameprotected Stringgets the OS versionprotected StringgetProxy()Gets the Proxy header.protected StringBufferGets the Requestbuffer used for creating the actual request string.protected StringGets the Java runtime versionprotected voidsetClientType(String clientType) protected voidsetClientVersion(String version) Sets client versionprotected voidsetContext(Context context) voidsetIntegrationProduct(String value) Sets the integration productvoidsetIntegrationVersion(String value) Sets the integration versionprotected voidsetOsArchitecture(String value) Sets the OS architectureprotected voidsets the OsNameprotected voidsetOsVersion(String value) sets the OsVersionprotected voidsetPayflowAssembly(String payflowAssembly) payflowAssembly, the possible values are PayflowConstants.STRONG_ASSEMBLY or PayflowConstants.WEAK_ASSEMBLYprotected voidsets the Proxy headerprotected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.protected voidsetRunTimeVersion(String value) Sets the Java runtime version
-
Constructor Details
-
ClientInfo
public ClientInfo()Constructor
-
-
Method Details
-
getClientInfoHash
Gets the client info hash table- Returns:
- clientInfoHash HashTable
-
getClientVersion
gets the clientVersion- Returns:
- clientVersion
-
getOsArchitecture
Gets the OS architecture- Returns:
- osArchitecture String
-
setOsArchitecture
Sets the OS architecture- Parameters:
value- String
-
getOsVersion
gets the OS version- Returns:
- osVersion String
-
setOsVersion
sets the OsVersion- Parameters:
value- String
-
getOsName
Gets the OS Name- Returns:
- osName String
-
setOsName
sets the OsName- Parameters:
value- String
-
getProxy
Gets the Proxy header.- Returns:
- proxy String
-
setProxy
sets the Proxy header- Parameters:
value- String
-
getRunTimeVersion
Gets the Java runtime version- Returns:
- runTimeVersion String
-
setRunTimeVersion
Sets the Java runtime version- Parameters:
value- String
-
setIntegrationProduct
Sets the integration product- Parameters:
value- String
-
setIntegrationVersion
Sets the integration version- Parameters:
value- String
-
getClientType
Gets Client Type- Returns:
- ClientType String
-
setClientVersion
Sets client version- Parameters:
version- String
-
getIntegrationProduct
Gets integration product- Returns:
- IntegrationProduct String
-
getIntegrationVersion
Gets integration version- Returns:
- IntegrationVersion String
-
setClientType
- Parameters:
clientType- String
-
setPayflowAssembly
payflowAssembly, the possible values are PayflowConstants.STRONG_ASSEMBLY or PayflowConstants.WEAK_ASSEMBLY- Parameters:
payflowAssembly- String
-
addHeaderToHash
Adds a header to the header hash table- Parameters:
headerName- StringheaderValue- Object
-
getHeaderFromHash
Gets a header value from hash- Parameters:
headerName- String- Returns:
- headerValue Object
-
getContext
-
setContext
-
getRequestBuffer
Gets the Requestbuffer used for creating the actual request string.- Returns:
- mRequestBuffer StringBuffer
-
setRequestBuffer
sets the StringBuffer to hold the request string.- Parameters:
value- StringBuffer
-
generateRequest
protected void generateRequest()
-