You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2005/06/13 18:42:55 UTC
svn commit: r190421 - in
/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax:
./ AJAXException.java AJAXRequest.java AJAXResponse.java AJAXService.java
Author: weaver
Date: Mon Jun 13 09:42:53 2005
New Revision: 190421
URL: http://svn.apache.org/viewcvs?rev=190421&view=rev
Log:
JS2-283: These are the basic interfaces used for implementing the Ajax service.
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXException.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXRequest.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXResponse.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXService.java
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXException.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXException.java?rev=190421&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXException.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXException.java Mon Jun 13 09:42:53 2005
@@ -0,0 +1,45 @@
+package org.apache.jetspeed.ajax;
+
+import org.apache.jetspeed.exception.JetspeedException;
+import org.apache.jetspeed.i18n.KeyedMessage;
+
+public class AJAXException extends JetspeedException
+{
+
+ public AJAXException()
+ {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ public AJAXException(KeyedMessage keyedMessage, Throwable nested)
+ {
+ super(keyedMessage, nested);
+ // TODO Auto-generated constructor stub
+ }
+
+ public AJAXException(KeyedMessage typedMessage)
+ {
+ super(typedMessage);
+ // TODO Auto-generated constructor stub
+ }
+
+ public AJAXException(String msg, Throwable nested)
+ {
+ super(msg, nested);
+ // TODO Auto-generated constructor stub
+ }
+
+ public AJAXException(String message)
+ {
+ super(message);
+ // TODO Auto-generated constructor stub
+ }
+
+ public AJAXException(Throwable nested)
+ {
+ super(nested);
+ // TODO Auto-generated constructor stub
+ }
+
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXRequest.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXRequest.java?rev=190421&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXRequest.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXRequest.java Mon Jun 13 09:42:53 2005
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
+ *
+ * Licensed 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.jetspeed.ajax;
+
+import java.util.List;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Request used for AJAX services.
+ *
+ * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
+ *
+ */
+public interface AJAXRequest
+{
+ String getServiceName();
+
+ String getMethodName();
+
+ List getParameters();
+
+ HttpServletRequest getServletRequest();
+
+ HttpServletResponse getServletResponse();
+
+ ServletContext getContext();
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXResponse.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXResponse.java?rev=190421&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXResponse.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXResponse.java Mon Jun 13 09:42:53 2005
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
+ *
+ * Licensed 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.jetspeed.ajax;
+
+
+/**
+ * Response object used for AJAX services.
+ *
+ * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
+ *
+ */
+public interface AJAXResponse
+{
+ void complete() throws AJAXException;
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXService.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXService.java?rev=190421&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXService.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/ajax/AJAXService.java Mon Jun 13 09:42:53 2005
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
+ *
+ * Licensed 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.jetspeed.ajax;
+
+/**
+ * Performs invocation of the actual AJAX request and returns
+ * a result object to converted into XML.
+ *
+ * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
+ *
+ */
+public interface AJAXService
+{
+ AJAXResponse processRequest(AJAXRequest request) throws AJAXException;
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org