KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ajaxtags > servlets > BaseAjaxXmlAction


1 /**
2  * Copyright (C) 2007 Jens Kapitza
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.ajaxtags.servlets;
17
18 import javax.servlet.http.HttpServletRequest JavaDoc;
19 import javax.servlet.http.HttpServletResponse JavaDoc;
20
21 /**
22  * Simple Action which can be invoked by AjaxActionHelper
23  * @author Jens Kapitza
24  *
25  */

26 public interface BaseAjaxXmlAction {
27
28     /**
29      * Each child class should override this method to generate the specific XML
30      * content necessary for each AJAX action.
31      *
32      * @param request
33      * the {@javax.servlet.http.HttpServletRequest} object
34      * @param response
35      * the {@javax.servlet.http.HttpServletResponse} object
36      * @return a {@java.lang.String} representation of the XML response/content
37      */

38     public String JavaDoc getXmlContent(HttpServletRequest JavaDoc request,
39             HttpServletResponse JavaDoc response) throws Exception JavaDoc;
40 }
41
Popular Tags