Class KaspiTransactionManager
java.lang.Object
ru.bitel.bgbilling.modules.mps.server.bean.protocol.MPSTransactionManager
ru.bitel.bgbilling.modules.mps.server.bean.protocol.KaspiTransactionManager
public class KaspiTransactionManager extends MPSTransactionManager
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringnameAccountprotected java.lang.StringnameCommandprotected java.lang.StringnameTxnDateprotected java.lang.StringnameTxnIDprotected java.lang.StringresultPrvTxnIDprotected java.lang.StringresultTxnIDprotected static java.lang.StringTIMEPATTERNprotected static java.util.regex.PatternTRANSACTION_PATTERNFields inherited from class ru.bitel.bgbilling.modules.mps.server.bean.protocol.MPSTransactionManager
ACTION_CANCEL, ACTION_CHANGE, ACTION_CHECK, ACTION_PAY, ACTION_PAY_ON_CHECK, ACTION_STATUS, documentBuilder, ERROR_MPS_CONTRACT_NOTFOUND, ERROR_MPS_DATA, ERROR_MPS_DATE, ERROR_MPS_DATE_FIELD, ERROR_MPS_EDIT_NOT_SUPPORTED, ERROR_MPS_HASH, ERROR_MPS_ISOFF, ERROR_MPS_NUMBER_PATTERN, ERROR_MPS_OUT_OF_MONEY, ERROR_MPS_PAY_EXIST, ERROR_MPS_PAY_NOTEXIST, ERROR_MPS_REQUEST, ERROR_MPS_SERVER, ERROR_MPS_SUM_BIG, ERROR_MPS_SUM_SMALL, ERROR_MPS_SUM_TOOSMALLORBIG, ERROR_MPS_TRANSACTION_ID_FIELD, ERROR_MPS_TYPE, KEY_RESPONSE_PARAMETERS, log, MPS_CYBERPLAT, MPS_FROMGATEWAY, MPS_OSMP, p1, p2, p3, pNumber, REQUEST_ATTRIBUTE_PARAMETERS, REQUEST_ATTRIBUTE_PATH_INFO -
Constructor Summary
Constructors Constructor Description KaspiTransactionManager() -
Method Summary
Modifier and Type Method Description protected voidcheckValid(Conf.MPSSystem system, MPSRequest req, java.sql.Connection con)Проверка на валидность запросаprotected java.util.regex.PatterngetFilePattern()protected java.lang.StringgetFileTimePattern()protected byte[]getResponse(java.sql.Connection con, Conf.MPSSystem system, MPSResponse response)Формирование сырого ответа системе из MPSResponseprotected java.util.List<Transaction>getTransactionListFromFile(Conf.MPSSystem system, java.lang.String file)protected MPSRequestparseRequest(java.sql.Connection con, int moduleId, java.lang.String mpsId, Conf.MPSSystem system, javax.servlet.http.HttpServletRequest request)Парсинг запроса от системыprotected voidprocessError(MPSException ex, MPSResponse response)Обработка ошибкиprotected byte[]processRequest(java.sql.Connection con, int moduleId, java.lang.String mpsId, Conf conf, Conf.MPSSystem system, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Обработка запроса от системыMethods inherited from class ru.bitel.bgbilling.modules.mps.server.bean.protocol.MPSTransactionManager
actionCheck, addTransaction, addTransaction, addTransaction, cancelPreparedTransaction, cancelTransaction, checkTime, clearCanceledTransaction, createTemporaryTable, executePreparedTransaction, executePreparedTransaction, executePreparedTransaction, findContract, getComment, getContractTitle, getDefaultEncoding, getEncoding, getInstance, getResponseAttributes, getTable, getTransactionByTransId, getTransactionByTransId, getTransactionByTransId, getTransactionFromRS, getTransactionList, getTransactionList, getTransactionList, getTransactionList, getTransactionList, getTransactionListForDay, getTransactionListFromFileByConfig, getTransactionListFromFileByPattern, getUserLogin, getUserLoginFormatted, onPayment, parseBigInteger, prepareTransaction, prepareTransaction, prepareTransaction, preProcess, processRegister, processRegister, processRequest, processResponseEvent, reviseAddTransactions, reviseCancelTransactions, reviseRestoreTransactions, searchTransactionList, setEncoding, setResponseParameters, setUserLogin, systemAccountAdd, systemAccountDelete, xmlSerializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TIMEPATTERN
protected static final java.lang.String TIMEPATTERN- See Also:
- Constant Field Values
-
nameCommand
protected java.lang.String nameCommand -
nameAccount
protected java.lang.String nameAccount -
nameTxnID
protected java.lang.String nameTxnID -
nameTxnDate
protected java.lang.String nameTxnDate -
resultTxnID
protected java.lang.String resultTxnID -
resultPrvTxnID
protected java.lang.String resultPrvTxnID -
TRANSACTION_PATTERN
protected static final java.util.regex.Pattern TRANSACTION_PATTERN
-
-
Constructor Details
-
KaspiTransactionManager
public KaspiTransactionManager()
-
-
Method Details
-
processRequest
protected byte[] processRequest(java.sql.Connection con, int moduleId, java.lang.String mpsId, Conf conf, Conf.MPSSystem system, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Description copied from class:MPSTransactionManagerОбработка запроса от системы -
parseRequest
protected MPSRequest parseRequest(java.sql.Connection con, int moduleId, java.lang.String mpsId, Conf.MPSSystem system, javax.servlet.http.HttpServletRequest request)Description copied from class:MPSTransactionManagerПарсинг запроса от системы -
getResponse
Description copied from class:MPSTransactionManagerФормирование сырого ответа системе из MPSResponse -
processError
Description copied from class:MPSTransactionManagerОбработка ошибки -
checkValid
protected void checkValid(Conf.MPSSystem system, MPSRequest req, java.sql.Connection con) throws MPSExceptionDescription copied from class:MPSTransactionManagerПроверка на валидность запроса- Overrides:
checkValidin classMPSTransactionManager- Throws:
MPSException
-
getTransactionListFromFile
protected java.util.List<Transaction> getTransactionListFromFile(Conf.MPSSystem system, java.lang.String file)- Specified by:
getTransactionListFromFilein classMPSTransactionManager
-
getFilePattern
protected java.util.regex.Pattern getFilePattern() -
getFileTimePattern
protected java.lang.String getFileTimePattern()
-