Class SbrfTransactionManager
java.lang.Object
ru.bitel.bgbilling.modules.mps.server.bean.protocol.MPSTransactionManager
ru.bitel.bgbilling.modules.mps.server.bean.protocol.SbrfTransactionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getResponse(Connection con, Conf.MPSSystem system, MPSResponse response) Формирование сырого ответа системе из MPSResponseprotected List<Transaction>getTransactionListFromFile(Conf.MPSSystem system, String file) protected MPSRequestparseRequest(Connection con, int moduleId, String mpsId, Conf.MPSSystem system, jakarta.servlet.http.HttpServletRequest request) Парсинг запроса от системыprotected voidprocessError(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, checkValid, clearCanceledTransaction, createTemporaryTable, executePreparedTransaction, executePreparedTransaction, executePreparedTransaction, findContract, getComment, getContractTitle, 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
-
RESPONSE_CODE_OK
public static final int RESPONSE_CODE_OK- See Also:
-
RESPONSE_CODE_ERROR_REPLACE_LATER
public static final int RESPONSE_CODE_ERROR_REPLACE_LATER- See Also:
-
RESPONSE_CODE_UNKNOWN_REQUEST_ACTION
public static final int RESPONSE_CODE_UNKNOWN_REQUEST_ACTION- See Also:
-
RESPONSE_CODE_CONTRACT_NOT_FOUND
public static final int RESPONSE_CODE_CONTRACT_NOT_FOUND- See Also:
-
RESPONSE_CODE_INCORRECT_AMOUNT
public static final int RESPONSE_CODE_INCORRECT_AMOUNT- See Also:
-
RESPONSE_CODE_ACCOUNT_OFF
public static final int RESPONSE_CODE_ACCOUNT_OFF- See Also:
-
RESPONSE_CODE_INCORRECT_PAY_ID
public static final int RESPONSE_CODE_INCORRECT_PAY_ID- See Also:
-
RESPONSE_CODE_TRANSFER_LOCK
public static final int RESPONSE_CODE_TRANSFER_LOCK- See Also:
-
RESPONSE_CODE_DUBLICATE_TRANSACTION
public static final int RESPONSE_CODE_DUBLICATE_TRANSACTION- See Also:
-
RESPONSE_CODE_SUM_INCORECT
public static final int RESPONSE_CODE_SUM_INCORECT- See Also:
-
RESPONSE_CODE_SUM_MOST_SMALL
public static final int RESPONSE_CODE_SUM_MOST_SMALL- See Also:
-
RESPONSE_CODE_SUM_MOST_BIG
public static final int RESPONSE_CODE_SUM_MOST_BIG- See Also:
-
RESPONSE_CODE_INCORRECT_PAY_DATE
public static final int RESPONSE_CODE_INCORRECT_PAY_DATE- See Also:
-
RESPONSE_CODE_INSIDE_ERROR
public static final int RESPONSE_CODE_INSIDE_ERROR- See Also:
-
-
Constructor Details
-
SbrfTransactionManager
public SbrfTransactionManager()
-
-
Method Details
-
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:
processRequestin classMPSTransactionManager
-
parseRequest
protected MPSRequest parseRequest(Connection con, int moduleId, String mpsId, Conf.MPSSystem system, jakarta.servlet.http.HttpServletRequest request) throws MPSException Description copied from class:MPSTransactionManagerПарсинг запроса от системы- Specified by:
parseRequestin classMPSTransactionManager- Throws:
MPSException
-
processError
Description copied from class:MPSTransactionManagerОбработка ошибки- Specified by:
processErrorin classMPSTransactionManager
-
getTransactionListFromFile
- Specified by:
getTransactionListFromFilein classMPSTransactionManager
-
getResponse
Description copied from class:MPSTransactionManagerФормирование сырого ответа системе из MPSResponse- Specified by:
getResponsein classMPSTransactionManager
-
getDefaultEncoding
- Overrides:
getDefaultEncodingin classMPSTransactionManager
-