コード例 #1
0
 private void outputAttributesRoute(XmlWriter out, String name) throws IOException {
   outputItemClass(out, "ie.ncl.vivato.router.AttributesRoute");
   outputPropertyClass(out, "java.util.ArrayList", "attributes");
   outputItemClass(out, "ie.ncl.vivato.router.AttributesRoute$Attribute");
   outputProperty(out, "criteria", "userfield1");
   outputProperty(out, "value", name + INSTANCE_GATEWAY_SUFFIX);
   out.endTag();
   out.endTag();
   outputPropertyClass(out, "java.util.ArrayList", "destinations");
   outputComponent(out, name + INSTANCE_GATEWAY_SUFFIX);
   out.endTag();
   out.endTag();
 }
コード例 #2
0
 private void outputAlertFindInstanceRouterApp(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.VivatoApplication", INSTANCE_ROUTER_APPLICATION);
   outputProperty(out, "messageService", "provato-envious-service");
   outputProperty(out, "description", "");
   outputProperty(out, "destination", "InstanceRouter");
   outputPropertyClass(out, "ie.ncl.vivato.messaging.soap.SoapClientInterface", "clientInterface");
   out.endTag();
   outputProperty(out, "dialingDomain", "provato-dialingdomain-default");
   outputProperty(out, "lastApplicationDatabase", "provato-lastapplication-database");
   outputProperty(out, "correlationIdEnabled", "true");
   outputProperty(out, "correlationIdExpirySeconds", "0");
   out.endTag();
 }
コード例 #3
0
 private void outputLoggingComponent(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.LoggingComponent", "provato-logging");
   outputProperty(out, "debugLogging", "true");
   outputProperty(out, "logFolderRelative", "../logs");
   outputProperty(out, "vivatoSettings", "provato-settings");
   out.endTag();
 }
コード例 #4
0
 private void outputMessageDatabase(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.messagedatabase.MessageDatabase", "provato-message-database");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "runExpiryEverySeconds", "3600");
   out.endTag();
 }
コード例 #5
0
 private void outputRetryPolicy(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.messaging.RetryPolicy", "provato-retrypolicy-default");
   outputPropertyClass(out, "java.util.Properties", "policy");
   outputItem(out, "Too many messages in queue", "5,60,300,1800,3600");
   out.endTag();
   out.endTag();
 }
コード例 #6
0
 private void outputHibernateReceiptDatabase(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.receiptdatabase.HibernateReceiptDatabase", "provato-receipt-database");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "runExpiryEverySeconds", "3600");
   out.endTag();
 }
コード例 #7
0
 private void outputItem(XmlWriter out, String name, String value, boolean endTag)
     throws IOException {
   out.tag("item").attr("name", name).attr("value", value);
   if (endTag) {
     out.endTag();
   }
 }
コード例 #8
0
 private void outputTransactionLog(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.transactionlog.TransactionLog", "provato-transaction-log");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "runExpiryEverySeconds", "3600");
   out.endTag();
 }
コード例 #9
0
  private void outputInstance(XmlWriter out, int code, String name) throws IOException {
    String appName = name + code;

    outputComponentClass(out, "ie.ncl.vivato.VivatoApplication", appName);
    outputProperty(out, "messageService", "provato-envious-service");
    outputProperty(out, "description", "");
    outputProperty(out, "destination", "mBloxDirectPlus");
    outputPropertyClass(out, "ie.ncl.vivato.messaging.soap.SoapClientInterface", "clientInterface");
    out.endTag();
    outputProperty(out, "dialingDomain", "provato-dialingdomain-default");
    outputProperty(out, "lastApplicationDatabase", "provato-lastapplication-database");
    outputProperty(out, "correlationIdEnabled", "true");
    outputProperty(out, "correlationIdDatabase", "provato-correlationid-database");
    outputProperty(out, "correlationIdExpirySeconds", "0");
    out.endTag();
    outputComponentClass(
        out,
        "ie.ncl.vivato.gateway.provato.InterProvatoGateway",
        appName + INSTANCE_GATEWAY_SUFFIX);
    outputProperty(out, "messageService", "provato-envious-service");
    outputProperty(out, "licenses", "provato-licenses");
    outputProperty(out, "receiptDatabase", "provato-receipt-database");
    outputProperty(out, "lastNetworkDatabase", "provato-lastnetwork-database");
    outputPropertyClass(out, "java.util.Properties", "properties");
    out.endTag();
    outputProperty(out, "destination", appName);
    outputProperty(out, "description", "");
    outputProperty(out, "receiptDatabaseGroup", appName + INSTANCE_GATEWAY_SUFFIX);
    outputProperty(out, "sendingEnrouteMessages", "false");
    outputProperty(out, "connectAtStartup", "true");
    outputProperty(out, "reconnectEverySeconds", "300");
    outputProperty(out, "throttleMaximumPerHour", "0");
    outputProperty(out, "transactionLogValue", "");
    outputProperty(out, "dialingDomain", "provato-dialingdomain-default");
    outputProperty(out, "emailAlerts", "provato-emailalerts-default");
    outputProperty(out, "mediaMessageParser", "provato-mediamessageparser");
    outputProperty(out, "retryPolicy", "provato-retrypolicy-default");
    outputProperty(out, "removeSourceAddressesMT", "false");
    outputProperty(out, "originalMessageStoredInReceiptDatabase", "false");
    outputProperty(
        out,
        "serverUrl",
        "http://localhost:8080/provato/inter/" + appName + INSTANCE_GATEWAY_SUFFIX);
    outputProperty(out, "applicationName", "");
    out.endTag();
  }
コード例 #10
0
 private void outputDialingDomain(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.DialingDomain", "provato-dialingdomain-default");
   outputProperty(out, "internationalCode", "1");
   outputProperty(out, "internationalDirectDialingCode", "011");
   outputProperty(out, "nationalDirectDialingCode", "1");
   outputProperty(out, "minNationalNumberLength", "6");
   out.endTag();
 }
コード例 #11
0
 private void outputLongMessageReassembler(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.sms.LongMessageReassembler", "provato-longmessagereceive");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "minutesExpiry", "10");
   outputProperty(out, "runExpiryEverySeconds", "3600");
   out.endTag();
 }
コード例 #12
0
 private void outputEnviousVivatoMessageService(XmlWriter out) throws IOException {
   outputComponentClass(
       out,
       "ie.ncl.vivato.messaging.envious.EnviousVivatoMessageService",
       "provato-envious-service");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "licensesComponent", "provato-licenses");
   out.endTag();
 }
コード例 #13
0
 private void outputEmailAlerts(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.EmailAlerts", "provato-emailalerts-default");
   outputProperty(out, "smtpHost", "{MTA_VIP_NAME}");
   outputProperty(out, "from", "{NOTIFY_M1_FROM}");
   outputProperty(out, "to", "{NOTIFY_M1_RECIPIENTS}");
   outputProperty(out, "cc", "");
   outputProperty(out, "enabled", "true");
   out.endTag();
 }
コード例 #14
0
 private void outputSimpleDataSourceComponent(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.database.SimpleDataSourceComponent", "provato-datasource");
   outputProperty(out, "dialect", "MySQL");
   outputProperty(out, "driverClass", "com.mysql.jdbc.Driver");
   outputProperty(out, "url", "jdbc:mysql://{DB_HOSTNAME}/{DB_NAME}");
   outputProperty(out, "username", "{DB_USERNAME}");
   outputProperty(out, "password", "{DB_PASSWORD}");
   out.endTag();
 }
コード例 #15
0
 private void outputCorrelationIdDatabase(XmlWriter out) throws IOException {
   outputComponentClass(
       out,
       "ie.ncl.vivato.database.correlationid.CorrelationIdDatabase",
       "provato-correlationid-database");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "runExpiryEverySeconds", "600");
   outputProperty(out, "enabled", "true");
   out.endTag();
 }
コード例 #16
0
 private void outputLastNetworkDatabase(XmlWriter out) throws IOException {
   outputComponentClass(
       out,
       "ie.ncl.vivato.database.lastnetwork.LastNetworkDatabase",
       "provato-lastnetwork-database");
   outputProperty(out, "dataSource", "provato-datasource");
   outputProperty(out, "entryExpirySeconds", "604800");
   outputProperty(out, "runExpiryEverySeconds", "3600");
   outputProperty(out, "enabled", "true");
   out.endTag();
 }
コード例 #17
0
 private void outputMmsServerComponent(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.mms.mm1.MmsMm1ServerComponent", "provato-mms-mm1");
   outputProperty(out, "mmscUrlBase", "http://localhost:8080/provato/mmsc/");
   outputProperty(out, "messageDatabase", "provato-message-database");
   outputProperty(out, "hoursExpiry", "168");
   outputProperty(out, "cacheManager", "provato-caches");
   outputProperty(out, "mediaMessageParser", "provato-mediamessageparser");
   outputProperty(out, "receiptForWapPush", "false");
   outputProperty(out, "receiptForFetch", "true");
   outputProperty(out, "messageService", "provato-envious-service");
   out.endTag();
 }
コード例 #18
0
 private void outputRouterAppToInstancesRouter(XmlWriter out, Map<Integer, String> instanceMap)
     throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.router.Router", "InstanceRouter");
   outputProperty(out, "messageService", "provato-envious-service");
   outputProperty(out, "lastNetworkDatabase", "provato-lastnetwork-database");
   outputProperty(out, "lastApplicationDatabase", "provato-lastapplication-database");
   outputProperty(out, "direction", "outbound");
   outputPropertyClass(out, "ie.ncl.vivato.router.DefaultRoute", "defaultRoute");
   outputPropertyClass(out, "java.util.ArrayList", "destinations");
   outputComponent(out, "mBloxDirectPlus");
   out.endTag();
   out.endTag();
   outputProperty(out, "description", "");
   outputPropertyClass(out, "java.util.ArrayList", "routeTable");
   for (Iterator<Integer> iter = instanceMap.keySet().iterator(); iter.hasNext(); ) {
     Integer id = iter.next();
     String instanceName = instanceMap.get(id);
     outputAttributesRoute(out, instanceName + id);
   }
   out.endTag();
   out.endTag();
 }
コード例 #19
0
 private void outputInboundRouter(XmlWriter out, Map<Integer, String> instanceMap)
     throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.router.Router", "AlertFindInboundRouter");
   outputProperty(out, "messageService", "provato-envious-service");
   outputProperty(out, "lastNetworkDatabase", "provato-lastnetwork-database");
   outputProperty(out, "lastApplicationDatabase", "provato-lastapplication-database");
   outputProperty(out, "direction", "inbound");
   outputPropertyClass(out, "ie.ncl.vivato.router.DefaultRoute", "defaultRoute");
   outputPropertyClass(out, "java.util.ArrayList", "destinations");
   outputComponent(out, INSTANCE_ROUTER_APPLICATION);
   out.endTag();
   out.endTag();
   outputProperty(out, "description", "content-based router");
   outputPropertyClass(out, "java.util.ArrayList", "routeTable");
   outputItemClass(out, "ie.ncl.vivato.router.AttributesRoute");
   outputPropertyClass(out, "java.util.ArrayList", "attributes");
   outputItemClass(out, "ie.ncl.vivato.router.AttributesRoute$Attribute");
   outputProperty(out, "criteria", "firstword");
   outputProperty(out, "value", "msg1");
   out.endTag();
   out.endTag();
   outputPropertyClass(out, "java.util.ArrayList", "destinations");
   outputComponent(out, INSTANCE_ROUTER_APPLICATION);
   out.endTag();
   out.endTag();
   outputItemClass(out, "ie.ncl.vivato.router.DeliveryReceiptRoute");
   outputPropertyClass(out, "java.util.ArrayList", "destinations");
   outputComponent(out, INSTANCE_ROUTER_APPLICATION);
   for (Iterator<Integer> iter = instanceMap.keySet().iterator(); iter.hasNext(); ) {
     Integer code = iter.next();
     String instanceName = instanceMap.get(code);
     outputComponent(out, instanceName + code);
   }
   out.endTag();
   out.endTag();
   out.endTag();
   out.endTag();
 }
コード例 #20
0
 private void outputMmsOverWmlComponent(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.mms.wml.MmsOverWmlComponent", "provato-mmsoverwml");
   outputProperty(out, "wmlUrlBase", "http://localhost:8080/provato/mmsoverwml/");
   outputProperty(out, "messageDatabase", "provato-message-database");
   outputProperty(out, "cacheManager", "provato-caches");
   outputProperty(out, "mediaMessageParser", "provato-mediamessageparser");
   outputProperty(out, "hoursExpiry", "168");
   outputProperty(out, "receiptForWapPush", "false");
   outputProperty(out, "receiptForFetchWml", "true");
   outputProperty(out, "messageService", "provato-envious-service");
   outputProperty(out, "anchorLinkAroundImages", "true");
   outputProperty(out, "generateReplyLink", "true");
   out.endTag();
 }
コード例 #21
0
 private void outputVivatoConsoleSettings(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.VivatoConsoleSettings", "provato-consolesettings");
   outputProperty(out, "debugMode", "false");
   out.endTag();
 }
コード例 #22
0
 private void outputWebserverComponent(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.standalone.WebserverComponent", "provato-web");
   outputProperty(out, "port", "8080");
   outputProperty(out, "vivatoSettings", "provato-settings");
   out.endTag();
 }
コード例 #23
0
 private void outputVivatoFailureRecovery(XmlWriter out) throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.VivatoFailureRecovery", "provato-failure-recovery");
   outputProperty(out, "checkEverySeconds", "0");
   out.endTag();
 }
コード例 #24
0
 private void outputSMSGateway(
     XmlWriter out,
     String name,
     String sHost,
     String sUser,
     String sPassword,
     String sPort,
     String version)
     throws IOException {
   outputComponentClass(out, "ie.ncl.vivato.sms.SmsGateway", name);
   outputProperty(out, "messageService", "provato-envious-service");
   outputProperty(out, "licenses", "provato-licenses");
   outputProperty(out, "receiptDatabase", "provato-receipt-database");
   outputProperty(out, "lastNetworkDatabase", "provato-lastnetwork-database");
   outputPropertyClass(out, "java.util.Properties", "properties");
   outputItem(out, "bindType", "transceiver");
   outputItem(out, "defaultAlphabetEncoding", "GSM");
   outputItem(out, "defaultNpi", "0");
   outputItem(out, "defaultTon", "0");
   outputItem(out, "deviceClass", "ie.ncl.sms.smpp.SmppConnection");
   outputItem(out, "expectNullTerminateDeliver", "false");
   outputItem(out, "flowControlTimerSeconds", "5");
   outputItem(out, "host", sHost);
   outputItem(out, "id", sUser);
   outputItem(out, "insertPlusOnMODestination", "false");
   outputItem(out, "insertPlusOnMOSource", "false");
   outputItem(out, "linkAliveIfAnyDataReceived", "true");
   outputItem(out, "pass", sPassword);
   outputItem(out, "port", sPort);
   outputItem(out, "queryLinkEverySeconds", "10");
   outputItem(out, "range", "11*");
   outputItem(out, "range.npi", "0");
   outputItem(out, "range.ton", "0");
   outputItem(out, "receiptDecoding", "Default");
   outputItem(out, "reconnectOnDisconnect", "false");
   outputItem(out, "retryMessagesOnQueueFull", "false");
   outputItem(out, "smscResponseTimeoutSeconds", "120");
   outputItem(out, "sourceNpi", "1");
   outputItem(out, "sourceNumber", "{SMS_SHORTCODE}");
   outputItem(out, "sourceTon", "3");
   outputItem(out, "transmitterBindSourceAddressAllowed", "false");
   outputItem(out, "type", "Message1");
   outputItem(out, "use7BitDecoding", "false");
   outputItem(out, "use7BitDecodingOctetLength", "false");
   outputItem(out, "use7BitEncoding", "false");
   outputItem(out, "use7BitEncodingOctetLength", "false");
   outputItem(out, "useReceiptedMessageIds", "true");
   outputItem(out, "version", version);
   out.endTag();
   outputProperty(out, "destination", "AlertFindInboundRouter");
   outputProperty(out, "description", "");
   outputProperty(out, "receiptDatabaseGroup", name);
   outputProperty(out, "sendingEnrouteMessages", "true");
   outputProperty(out, "connectAtStartup", "true");
   outputProperty(out, "reconnectEverySeconds", "300");
   outputProperty(out, "throttleMaximumPerHour", "0");
   outputProperty(out, "transactionLogValue", "");
   outputProperty(out, "dialingDomain", "provato-dialingdomain-default");
   outputProperty(out, "emailAlerts", "provato-emailalerts-default");
   outputProperty(out, "mediaMessageParser", "provato-mediamessageparser");
   outputProperty(out, "retryPolicy", "provato-retrypolicy-default");
   outputProperty(out, "removeSourceAddressesMT", "false");
   outputProperty(out, "messageRules", "");
   outputProperty(out, "originalMessageStoredInReceiptDatabase", "true");
   outputProperty(out, "longMessageReassembler", "provato-longmessagereceive");
   outputProperty(out, "convertNumbersToNational", "false");
   out.endTag();
 }
コード例 #25
0
 private void outputMediaMessageParser(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.message.MediaMessageParser", "provato-mediamessageparser");
   outputProperty(out, "messageContentHandler", "provato-messagecontenthandler");
   out.endTag();
 }
コード例 #26
0
 private void outputVivatoMessageContentHandler(XmlWriter out) throws IOException {
   outputComponentClass(
       out, "ie.ncl.vivato.message.VivatoMessageContentHandler", "provato-messagecontenthandler");
   outputProperty(out, "cacheManager", "provato-caches");
   out.endTag();
 }