www in docker support

This commit is contained in:
MaddoScientisto 2026-04-22 18:41:37 +02:00
commit c227fce036
2145 changed files with 399596 additions and 58 deletions

View file

@ -0,0 +1,260 @@
package it.acxent.bank.setefi;
import it.acxent.bank._BankAdapter;
import it.acxent.common.Parm;
import it.acxent.common.StatusMsg;
import it.acxent.db.ApplParmFull;
import it.acxent.db.DBAdapter;
public class SetefiReq extends _BankAdapter {
public static final String LANG_CODE_IT = "ITA";
public static final String LANG_CODE_EN = "USA";
public static final String LANG_CODE_ES = "SPA";
public static final String LANG_CODE_FR = "FRA";
public static final String LANG_CODE_DE = "DEU";
public static final String DIV_CODE_EURO = "978";
public static final String P_MONETAONLINE_ID = "MONETAONLINE_ID";
public static final String DEFAULT_RESPONSE_URL = "MONETAONLINE_ID";
public static final String DEFAULT_RESPONSE_PAGE = "payResMO.jsp";
public static final String DIV_CODE_DOLLARL_HK = "103";
public static final String TEST_URL = "https://test.monetaonline.it/monetaweb/hosted/init/http";
public static final String REQ_URL = "https://test.monetaonline.it/monetaweb/hosted/init/http";
private String id;
private String trackid;
private String titolareCarta;
private String email;
private String lang;
private String responseurl;
private double amt;
private String password;
private String descPagamento;
private String divisa;
public static final String BEAN_MO_RES = "MOResp";
public static final String P_MONETAONLINE_RESPONSE_JSP = "MONETAONLINE_RESPONSE_JSP";
public static final String TEST_PASSWORD = "99999999";
public static final String TEST_ID = "99999999";
public static final String P_MONETAONLINE_RESPONSE_URL = "MONETAONLINE_RESPONSE_URL";
public static final String P_MONETAONLINE_PASSWORD = "MONETAONLINE_PASSWORD";
public static final String P_MONETAONLINE_RESPONSE_PAGE = "MONETAONLINE_RESPONSE_PAGE";
public static final String DIV_CODE_DOLLARI = "1";
public double getAmt() {
return this.amt;
}
public void setAmt(double myamount) {
this.amt = myamount;
}
public String getEmail() {
return (this.email == null) ? "" : this.email;
}
public void setEmail(String mybuyeremail) {
this.email = mybuyeremail;
}
public String getTitolareCarta() {
return (this.titolareCarta == null) ? "" : this.titolareCarta;
}
public void setTitolareCarta(String mybuyername) {
this.titolareCarta = mybuyername;
}
public String getCurrencycode() {
if (getDivisa().toLowerCase().equals("eu"))
return "978";
return "978";
}
public String getDescPagamento() {
return (this.descPagamento == null) ? "" : this.descPagamento;
}
public void setDescPagamento(String mycustominfo) {
this.descPagamento = mycustominfo;
}
private String getMylanguageCode() {
if (getLang().toLowerCase().equals("it"))
return "ITA";
if (getLang().toLowerCase().equals("en"))
return "USA";
if (getLang().toLowerCase().equals("es\t"))
return "SPA";
if (getLang().toLowerCase().equals("fr"))
return "FRA";
if (getLang().toLowerCase().equals("de"))
return "DEU";
return "";
}
public String getTrackid() {
return (this.trackid == null) ? "" : this.trackid;
}
public void setTrackid(String myshoptransactionID) {
this.trackid = myshoptransactionID;
}
public String getLang() {
return (this.lang == null) ? "" : this.lang;
}
public void setLang(String lang) {
this.lang = lang;
}
public static void initApplicationParms(ApplParmFull ap) {
boolean debug = true;
if (ap != null) {
DBAdapter.logDebug(debug, "Setefi initParms: start");
String l_tipoParm = "MONETAONLINE";
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
Parm bean = new Parm(ap);
bean.findByCodice("MONETAONLINE_ID");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("MONETAONLINE_ID");
bean.setDescrizione("MONETAONLINE_ID");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("99999999");
bean.setNota("ID MONETAONLINE<BR>CODICE DI PROVA: 99999999");
bean.save();
bean.findByCodice("MONETAONLINE_PASSWORD");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("MONETAONLINE_PASSWORD");
bean.setDescrizione("MONETAONLINE_PASSWORD");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("99999999");
bean.setNota("PASSWORD MONETAONLINE<BR> PASSWORD DI PROVA: 99999999");
bean.save();
bean.findByCodice("MONETAONLINE_RESPONSE_URL");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("MONETAONLINE_RESPONSE_URL");
bean.setDescrizione("MONETAONLINE_RESPONSE_URL");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("http://www.nomedominio.it/PayMO.abl");
bean.setNota("QUALCOSA DEL TIPO http://www.nomedominio.it/PayMO.abl<br>E' l'url chiamata da setefi. Su moneta Online è sempre la stessa servlet!!");
bean.save();
bean.findByCodice("MONETAONLINE_RESPONSE_JSP");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("MONETAONLINE_RESPONSE_JSP");
bean.setDescrizione("MONETAONLINE_RESPONSE_JSP");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("/payResMO.jsp");
bean.setNota("QUALCOSA DEL TIPO <br>/payResMO.jsp.<br> E' la pagina jsp dove visualizziamo il risultato.");
bean.save();
bean.findByCodice("MONETAONLINE_RESPONSE_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("MONETAONLINE_RESPONSE_PAGE");
bean.setDescrizione("MONETAONLINE_RESPONSE_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("http://www.nomedominio.it/transazione_result-#-@.html");
bean.setNota("QUALCOSA DEL TIPO <br>http://www.nomedominio.it/xxx_result-#-@.html.<br> si userà una regola di rewrite rule dove # è il trackid mentre @ +è il paymentid<br>Esempio rewrite rule:<br>result,PayMO.abl,result,,@id_astaUtente@paymentid");
bean.save();
DBAdapter.logDebug(debug, "Setefi initParms: stop");
}
}
public String getId() {
return (this.id == null) ? "" : this.id.trim();
}
public void setId(String id) {
this.id = id;
}
public String getPassword() {
return (this.password == null) ? "" : this.password.trim();
}
public void setPassword(String password) {
this.password = password;
}
public String getResponseurl() {
return (this.responseurl == null) ? "" : this.responseurl.trim();
}
public void setResponseurl(String responseurl) {
this.responseurl = responseurl;
}
public String getRawdata() {
StringBuffer theUrl = new StringBuffer();
theUrl.append("id=");
theUrl.append(getId());
theUrl.append("&password=");
theUrl.append(getPassword());
theUrl.append("&action=4");
theUrl.append("&amt=");
theUrl.append(getAmt());
theUrl.append("&currencycode=");
theUrl.append(getCurrencycode());
theUrl.append("&langid=");
theUrl.append(getMylanguageCode());
theUrl.append("&responseurl=");
theUrl.append(getResponseurl());
theUrl.append("&errorurl=");
theUrl.append(getResponseurl());
theUrl.append("&trackid=");
theUrl.append(getTrackid());
if (!getDescPagamento().trim().isEmpty()) {
theUrl.append("&udf1=");
theUrl.append(getDescPagamento());
}
if (!getTitolareCarta().trim().isEmpty()) {
theUrl.append("&udf2=");
theUrl.append(getTitolareCarta() + ";" + getTitolareCarta());
}
return theUrl.toString();
}
public String getDivisa() {
return (this.divisa == null) ? "" : this.divisa.trim();
}
public void setDivisa(String divisa) {
this.divisa = divisa;
}
}

View file

@ -0,0 +1,115 @@
package it.acxent.bank.setefi;
import it.acxent.bank._BankAdapter;
public class SetefiResp extends _BankAdapter {
private String trackid;
private String paymentid;
private String udf3;
private String udf1;
private String result;
private String auth;
private long id_ordine;
private String responsecode;
private String tranid;
private String udf4;
private String udf2;
public String getResponsecode() {
return (this.responsecode == null) ? "" : this.responsecode;
}
public void setResponsecode(String myalertcode) {
this.responsecode = myalertcode;
}
public String getTranid() {
return (this.tranid == null) ? "" : this.tranid;
}
public void setTranid(String myalertdescription) {
this.tranid = myalertdescription;
}
public String getAuth() {
return (this.auth == null) ? "" : this.auth;
}
public void setAuth(String myauthcode) {
this.auth = myauthcode;
}
public String getUdf2() {
return (this.udf2 == null) ? "" : this.udf2;
}
public void setUdf2(String mybuyeremail) {
this.udf2 = mybuyeremail;
}
public String getUdf3() {
return (this.udf3 == null) ? "" : this.udf3;
}
public void setUdf3(String mybuyername) {
this.udf3 = mybuyername;
}
public String getTrackid() {
return (this.trackid == null) ? "" : this.trackid;
}
public void setTrackid(String myshoplogin) {
this.trackid = myshoplogin;
}
public String getPaymentid() {
return this.paymentid;
}
public void setPaymentid(String myshoptrxID) {
this.paymentid = myshoptrxID;
}
public String getResult() {
return (this.result == null) ? "" : this.result;
}
public void setResult(String mytrxresult) {
this.result = mytrxresult;
}
public long getId_ordine() {
return this.id_ordine;
}
public void setId_ordine(long id_ordine) {
this.id_ordine = id_ordine;
}
public String getUdf1() {
return (this.udf1 == null) ? "" : this.udf1;
}
public void setUdf1(String udf1) {
this.udf1 = udf1;
}
public String getUdf4() {
return (this.udf4 == null) ? "" : this.udf4;
}
public void setUdf4(String udf4) {
this.udf4 = udf4;
}
}