Class SBTransactionManager
java.lang.Object
ru.bitel.bgbilling.modules.mps.server.bean.protocol.MPSTransactionManager
ru.bitel.bgbilling.modules.mps.server.bean.protocol.GenericOSMPTransactionManager
ru.bitel.bgbilling.modules.mps.server.bean.protocol.SBTransactionManager
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.bgbilling.modules.mps.server.bean.protocol.GenericOSMPTransactionManager
GenericOSMPTransactionManager.ERCPaymentManager, GenericOSMPTransactionManager.MGPEPaymentManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected static final String
protected static final Pattern
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkValid
(Conf.MPSSystem system, MPSRequest req, Connection con) Проверка на валидность запросаprotected Pattern
protected String
protected byte[]
getResponse
(Connection con, Conf.MPSSystem system, MPSResponse response) Формирование сырого ответа системе из MPSResponseprotected List<Transaction>
getTransactionListFromFile
(Conf.MPSSystem system, String file) protected MPSRequest
parseRequest
(Connection con, int moduleId, String mpsId, Conf.MPSSystem system, jakarta.servlet.http.HttpServletRequest request) Парсинг запроса от системыprotected void
processError
(MPSException ex, MPSResponse response) Обработка ошибкиprotected byte[]
processRequest
(Connection con, int moduleId, String mpsId, Conf conf, Conf.MPSSystem system, jakarta.servlet.http.HttpServletRequest request, jakarta.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, xmlSerialize
-
Field Details
-
TIMEPATTERN
- See Also:
-
nameCommand
-
nameAccount
-
nameTxnID
-
nameTxnDate
-
resultTxnID
-
resultPrvTxnID
-
TRANSACTION_PATTERN
-
-
Constructor Details
-
SBTransactionManager
public SBTransactionManager()
-
-
Method Details
-
getFilePattern
-
getFileTimePattern
-
getTransactionListFromFile
-
processRequest
protected byte[] processRequest(Connection con, int moduleId, String mpsId, Conf conf, Conf.MPSSystem system, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:MPSTransactionManager
Обработка запроса от системы- Specified by:
processRequest
in classMPSTransactionManager
-
getResponse
Description copied from class:MPSTransactionManager
Формирование сырого ответа системе из MPSResponse- Specified by:
getResponse
in classMPSTransactionManager
-
parseRequest
protected MPSRequest parseRequest(Connection con, int moduleId, String mpsId, Conf.MPSSystem system, jakarta.servlet.http.HttpServletRequest request) Description copied from class:MPSTransactionManager
Парсинг запроса от системы- Specified by:
parseRequest
in classMPSTransactionManager
-
checkValid
protected void checkValid(Conf.MPSSystem system, MPSRequest req, Connection con) throws MPSException Description copied from class:MPSTransactionManager
Проверка на валидность запроса- Overrides:
checkValid
in classMPSTransactionManager
- Throws:
MPSException
-
processError
Description copied from class:MPSTransactionManager
Обработка ошибки- Specified by:
processError
in classMPSTransactionManager
-