summaryrefslogtreecommitdiffstats
path: root/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-05-19 12:41:09 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-05-19 12:41:09 +0000
commitf20ddb18c5425b2dae9abc90a8a1c0f3f1d7b71a (patch)
treedcc33671cd8217956c39de30620169c74d0b2a04 /sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java
parent958b64f867ea73d21fbf0779871c490666147934 (diff)
Bit of renaming to be clear this is about looking at the domain rather then being the domain.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124713 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java')
-rw-r--r--sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java80
1 files changed, 80 insertions, 0 deletions
diff --git a/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java b/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java
new file mode 100644
index 0000000000..d7514f1bf3
--- /dev/null
+++ b/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.domain;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
+public interface DomainView {
+
+ @GET
+ @Produces( {MediaType.TEXT_HTML})
+ public String get();
+
+ @Path("{domainname}")
+ @GET
+ @Produces( {MediaType.APPLICATION_ATOM_XML,
+ MediaType.APPLICATION_JSON,
+ MediaType.APPLICATION_XML,
+ MediaType.TEXT_HTML})
+ public String getDomainServiceDocument(@PathParam("domainname") String domainName);
+
+ @Path("{domainname}/contribution")
+ @GET
+ @Produces( {MediaType.APPLICATION_ATOM_XML,
+ MediaType.APPLICATION_JSON,
+ MediaType.APPLICATION_XML,
+ MediaType.TEXT_HTML})
+ public String getContributions(@PathParam("domainname") String domainName);
+
+ @Path("{domainname}/composite")
+ public CompositeView getComposites(@PathParam("domainname") String domainName);
+
+ @Path("{domainname}/component")
+ @GET
+ @Produces( {MediaType.APPLICATION_ATOM_XML,
+ MediaType.APPLICATION_JSON,
+ MediaType.APPLICATION_XML,
+ MediaType.TEXT_HTML})
+ public String getComponents(@PathParam("domainname") String domainName);
+
+ @Path("{domainname}/endpoint")
+ @GET
+ @Produces( {MediaType.APPLICATION_ATOM_XML,
+ MediaType.APPLICATION_JSON,
+ MediaType.APPLICATION_XML,
+ MediaType.TEXT_HTML})
+ public String getEndpoints(@PathParam("domainname") String domainName);
+
+ @Path("{domainname}/node")
+ @GET
+ @Produces( {MediaType.APPLICATION_ATOM_XML,
+ MediaType.APPLICATION_JSON,
+ MediaType.APPLICATION_XML,
+ MediaType.TEXT_HTML})
+ public String getNodes(@PathParam("domainname") String domainName);
+
+} \ No newline at end of file