summaryrefslogtreecommitdiffstats
path: root/sandbox/slaws/domain-view/src/main/java/org/apache/tuscany/sca/domain/DomainView.java
diff options
context:
space:
mode:
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