summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2009-03-21 04:38:29 +0000
committerbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2009-03-21 04:38:29 +0000
commitc913243dae6d9a08c1b7c713fcc60d5f326eb313 (patch)
tree5742e8e4ddfdd6669d691db002d32998b7a49345
parent932ce58f6d471381d07c0859194b534a74536400 (diff)
TUSCANY-2932 Throw org.apache.tuscany.sca.data.collection.NotFoundException on 404 errors if AtomReferenceBindingProvider.supportsFeedEntries() is false
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@756876 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java30
1 files changed, 24 insertions, 6 deletions
diff --git a/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java b/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java
index 7219a3395b..7dd85a79d9 100644
--- a/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java
+++ b/branches/sca-java-1.x/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java
@@ -118,7 +118,10 @@ class AtomBindingInvoker implements Invoker {
}
} else if (status == 404) {
- msg.setFaultBody(new NotFoundException());
+ if ( provider.supportsFeedEntries())
+ msg.setFaultBody(new NotFoundException());
+ else
+ msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
}
@@ -198,7 +201,10 @@ class AtomBindingInvoker implements Invoker {
}
} else if (status == 404) {
- msg.setFaultBody(new NotFoundException());
+ if ( provider.supportsFeedEntries())
+ msg.setFaultBody(new NotFoundException());
+ else
+ msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
}
@@ -265,7 +271,10 @@ class AtomBindingInvoker implements Invoker {
msg.setBody(null);
} else if (status == 404) {
- msg.setFaultBody(new NotFoundException());
+ if ( provider.supportsFeedEntries())
+ msg.setFaultBody(new NotFoundException());
+ else
+ msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
}
@@ -304,7 +313,10 @@ class AtomBindingInvoker implements Invoker {
msg.setBody(null);
} else if (status == 404) {
- msg.setFaultBody(new NotFoundException());
+ if ( provider.supportsFeedEntries())
+ msg.setFaultBody(new NotFoundException());
+ else
+ msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
}
@@ -365,7 +377,10 @@ class AtomBindingInvoker implements Invoker {
}
} else if (status == 404) {
- msg.setFaultBody(new NotFoundException());
+ if ( provider.supportsFeedEntries())
+ msg.setFaultBody(new NotFoundException());
+ else
+ msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
}
@@ -431,7 +446,10 @@ class AtomBindingInvoker implements Invoker {
}
} else if (status == 404) {
- msg.setFaultBody(new NotFoundException());
+ if ( provider.supportsFeedEntries())
+ msg.setFaultBody(new NotFoundException());
+ else
+ msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
}