Add the northbound exception handler 66/36966/1
authorXiao Lin <linxiao9292@outlook.com>
Tue, 8 Mar 2016 03:54:47 +0000 (11:54 +0800)
committerKai GAO <gaok12@mails.tsinghua.edu.cn>
Thu, 31 Mar 2016 10:33:11 +0000 (18:33 +0800)
commit7dc7babadb55708099a0a0caa7d9474f990fec61
tree999551bf38cce6c64295c81ae6c48caa791f92f6
parent09af1c7cd66edc42cc6d429a01d42e607e8c1a69
Add the northbound exception handler

Handle ALTO Protocol Errors defined in RFC7285 8.5. Add a class to
generate error information response and implement the checker of
endpoint property service's requests.

 - Exceptions are defined in alto/core/northbound/api/exception

 - Exception handler is in alto/core/northbound/impl/

 - The example of how to use the handler can be found  in
   alto-core/standard-northbound-routes/endpointproperty

Change-Id: Id742d02d92ab6421949fe3ca02f234bec463299f
Signed-off-by: Xiao Lin <linxiao9292@outlook.com>
35 files changed:
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoBadFormatException.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoBasicException.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoErrorInvalidFieldValue.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoErrorInvalideFieldType.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoErrorMissingField.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoErrorSyntax.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/exception/AltoErrorTestException.java [new file with mode: 0644]
alto-core/northbound/api/src/main/java/org/opendaylight/alto/core/northbound/api/utils/rfc7285/RFC7285ErrorCode.java [new file with mode: 0644]
alto-core/northbound/impl/src/main/java/org/opendaylight/alto/core/northbound/impl/AltoNorthboundApplication.java
alto-core/northbound/impl/src/main/java/org/opendaylight/alto/core/northbound/impl/AltoNorthboundExceptionHandler.java [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/api/pom.xml [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/api/src/main/yang/alto-nbr-endpointproperty.yang [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/pom.xml [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/config/default-config.xml [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/config/maven-metadata-local.xml [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/java/org/opendaylight/alto/core/northbound/route/endpointproperty/impl/AltoNorthboundRouteEndpointproperty.java [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/java/org/opendaylight/alto/core/northbound/route/endpointproperty/impl/EndpointpropertyRouteChecker.java [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/alto/core/northbound/route/endpointproperty/impl/rev151021/AltoNorthboundRouteEndpointpropertyModule.java [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/alto/core/northbound/route/endpointproperty/impl/rev151021/AltoNorthboundRouteEndpointpropertyModuleFactory.java [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/main/yang/alto-northbound-route-endpointproperty-impl.yang [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/impl/src/test/java/org/opendaylight/alto/core/northbound/route/endpointproperty/impl/AltoNorthboundRouteEndpointpropertyTest.java [new file with mode: 0644]
alto-core/standard-northbound-routes/endpointproperty/pom.xml [new file with mode: 0644]
alto-core/standard-northbound-routes/pom.xml
alto-core/standard-service-models/model-endpointproperty/api/src/main/yang/alto-model-endpointproperty-rfc7285.yang
alto-core/standard-service-models/model-endpointproperty/features/pom.xml
alto-core/standard-service-models/model-endpointproperty/features/src/main/features/features.xml
alto-core/standard-service-models/model-endpointproperty/impl/pom.xml
alto-core/standard-service-models/model-endpointproperty/impl/src/main/java/org/opendaylight/alto/core/impl/endpointproperty/test/AltoEndpointPropertyProvider.java
alto-release-features/pom.xml
alto-release-features/src/main/features/features.xml
test/scripts/endpointpropertymap/endpointpropertymap_input [new file with mode: 0644]
test/scripts/northbound/nbr-endpointproperty-create [new file with mode: 0755]
test/scripts/northbound/query-nbr-endpointproperty [new file with mode: 0755]
test/scripts/northbound/template/endpointproperty-filter [new file with mode: 0644]
test/scripts/northbound/template/nbr-record-endpointproperty [new file with mode: 0644]