Révision 96454bcd
Ajouté par Sylvain Sauvage il y a plus de 11 ans
IoTa-DiscoveryWS/IoTa-DiscoveryWS/src/main/java/fr/unicaen/iota/discovery/server/util/Constants.java | ||
---|---|---|
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2012 Orange Labs
|
||
*
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
... | ... | |
public static final int SESSION_TIME_LEASE;
|
||
public static final String SESSION_FAILED_ID;
|
||
public static final String DS_SERVICE_TYPE;
|
||
public static final String SPEC_SERVICE_TYPE;
|
||
public static final String HTML_SERVICE_TYPE;
|
||
public static final String EPCIS_SERVICE_TYPE;
|
||
public static final String DS_ONS_TYPE;
|
||
public static final String SPEC_ONS_TYPE;
|
||
public static final String HTML_ONS_TYPE;
|
||
public static final String EPCIS_ONS_TYPE;
|
||
public static final String DS_TO_DS_CLASS;
|
||
public static final String DS_TO_DS_BIZ_STEP;
|
||
... | ... | |
public static final String DEFAULT_POLICY = "ACCEPT";
|
||
public static final long DEFAULT_TIME_STAMP = 10000000;
|
||
public static final String ONS_DOMAIN_PREFIX;
|
||
public static final String XACML_ADDRESS;
|
||
public static final int XACML_PORT;
|
||
public static final String XACML_URL;
|
||
public static final String XACML_IHM_URL;
|
||
public static final boolean USE_XACML;
|
||
|
||
... | ... | |
} catch (IOException ex) {
|
||
log.fatal(null, ex);
|
||
}
|
||
if ("false".equals(properties.getProperty("multi-ds-architecture"))) {
|
||
if (Boolean.parseBoolean(properties.getProperty("multi-ds-architecture"))) {
|
||
MULTI_DS_ARCHITECTURE = true;
|
||
ONS_HOSTS = fr.unicaen.iota.nu.Constants.ONS_HOSTS;
|
||
SIMULTANEOUS_PUBLISH_LIMIT = Integer.parseInt(properties.getProperty("simultaneous-publish-limit"));
|
||
DS_LOGIN = properties.getProperty("ds-login");
|
||
DS_PASSWORD = properties.getProperty("ds-password");
|
||
PUBLISHER_EVENT_REPUBLISH_GAP = Long.valueOf(properties.getProperty("publisher-event-republish-gap"));
|
||
DS_TO_DS_CLASS = properties.getProperty("ds-to-ds-class");
|
||
DS_TO_DS_BIZ_STEP = properties.getProperty("ds-to-ds-biz-step");
|
||
DS_TO_DS_EVENT_TYPE = properties.getProperty("ds-to-ds-event-type");
|
||
DS_TO_DS_POOL_EVENT = Integer.parseInt(properties.getProperty("ds-to-ds-pool-event"));
|
||
DEFAULT_EVENT_TOPUBLISH_TIMESTAMP = new Timestamp(Integer.parseInt(properties.getProperty("default-event-topublish-timestamp")));
|
||
PUBLISHER_TIMEOUT = Integer.parseInt(properties.getProperty("publisher-timeout"));
|
||
PUBLISHER_MONITOR_FREQUENCY = Integer.parseInt(properties.getProperty("publisher-monitor-frequency"));
|
||
PUBLISHER_FREQUENCY = Integer.parseInt(properties.getProperty("publisher-frequency"));
|
||
ONS_DOMAIN_PREFIX = fr.unicaen.iota.nu.Constants.ONS_DOMAIN_PREFIX;
|
||
} else {
|
||
MULTI_DS_ARCHITECTURE = false;
|
||
ONS_HOSTS = null;
|
||
DS_LOGIN = null;
|
||
... | ... | |
PUBLISHER_MONITOR_FREQUENCY = 0;
|
||
PUBLISHER_FREQUENCY = 0;
|
||
ONS_DOMAIN_PREFIX = "";
|
||
} else {
|
||
MULTI_DS_ARCHITECTURE = true;
|
||
String ONSAddrs = properties.getProperty("ons-hosts");
|
||
ONS_HOSTS = ONSAddrs.split(",");
|
||
SIMULTANEOUS_PUBLISH_LIMIT = Integer.parseInt(properties.getProperty("simultaneous-publish-limit"));
|
||
DS_LOGIN = properties.getProperty("ds-login");
|
||
DS_PASSWORD = properties.getProperty("ds-password");
|
||
PUBLISHER_EVENT_REPUBLISH_GAP = Long.valueOf(properties.getProperty("publisher-event-republish-gap"));
|
||
DS_TO_DS_CLASS = properties.getProperty("ds-to-ds-class");
|
||
DS_TO_DS_BIZ_STEP = properties.getProperty("ds-to-ds-biz-step");
|
||
DS_TO_DS_EVENT_TYPE = properties.getProperty("ds-to-ds-event-type");
|
||
DS_TO_DS_POOL_EVENT = Integer.parseInt(properties.getProperty("ds-to-ds-pool-event"));
|
||
DEFAULT_EVENT_TOPUBLISH_TIMESTAMP = new Timestamp(Integer.parseInt(properties.getProperty("default-event-topublish-timestamp")));
|
||
PUBLISHER_TIMEOUT = Integer.parseInt(properties.getProperty("publisher-timeout"));
|
||
PUBLISHER_MONITOR_FREQUENCY = Integer.parseInt(properties.getProperty("publisher-monitor-frequency"));
|
||
PUBLISHER_FREQUENCY = Integer.parseInt(properties.getProperty("publisher-frequency"));
|
||
String ons_domain_prefix = properties.getProperty("ons-domain-prefix");
|
||
ONS_DOMAIN_PREFIX = ons_domain_prefix.endsWith(".") ? ons_domain_prefix : ons_domain_prefix + ".";
|
||
}
|
||
log.info("Application properties configuration");
|
||
|
||
... | ... | |
SESSION_TIME_LEASE = Integer.parseInt(properties.getProperty("session-time-lease"));
|
||
SESSION_FAILED_ID = properties.getProperty("session-failed-id");
|
||
DS_SERVICE_TYPE = properties.getProperty("ds-service-type");
|
||
SPEC_SERVICE_TYPE = properties.getProperty("spec-service-type");
|
||
HTML_SERVICE_TYPE = properties.getProperty("html-service-type");
|
||
EPCIS_SERVICE_TYPE = properties.getProperty("epcis-service-type");
|
||
DS_ONS_TYPE = properties.getProperty("ds-ons-type");
|
||
SPEC_ONS_TYPE = properties.getProperty("spec-ons-type");
|
||
HTML_ONS_TYPE = properties.getProperty("html-ons-type");
|
||
EPCIS_ONS_TYPE = properties.getProperty("epcis-ons-type");
|
||
SERVICE_ID = properties.getProperty("service-id");
|
||
XACML_PORT = Integer.parseInt(properties.getProperty("xacml-port"));
|
||
XACML_ADDRESS = properties.getProperty("xacml-address");
|
||
XACML_URL = properties.getProperty("xacml-url");
|
||
XACML_IHM_URL = properties.getProperty("xacml-ihm-url");
|
||
USE_XACML = Boolean.parseBoolean(properties.getProperty("use-xacml"));
|
||
}
|
Formats disponibles : Unified diff
Version 1.9-mock
This is version 1.9-mock. 1.9 because the API still have changes pending
(principally relative to the Discovery Services). “mock” because TLS
configuration is not yet available and the signatures (SigMa) are not fully
implemented.
- code cleaned and refactored
- lots of bugs fixed
- dependencies checked and trimmed
- documentation added
- Identity handling added
- code refactored
- new, better APIs
- Identity handling added
- use EPCglobal and DS events (no proxy types anymore)
- ETa-Callback modules are now available as web applications
- filtering rules: if a part of an event is not allowed, now the whole
event is deleted from the result (before only the rejectd part was)
- new temporary User web service
- new Xi module: XACML Interrogation web service (was two modules: TCP and
servlet)
- ETa and its Callback modules
- ActiveMQ
- SigMa
- certificate/signing key
- new simplified figures (sans IoTa and simplified IoTa)
- new figure for ETa modules
- show 3rd party clients
- data flows specified
- TLS and link security added
- IDs and trusted IDs added
- color adjusted for printing
- GREYC logo added