KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > deli > Deli


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
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.apache.cocoon.components.deli;
17
18 import com.hp.hpl.deli.Profile;
19
20 import org.apache.avalon.framework.component.Component;
21 import org.apache.cocoon.environment.Request;
22 import org.w3c.dom.Document JavaDoc;
23
24 import java.io.IOException JavaDoc;
25 import javax.servlet.ServletException JavaDoc;
26
27 /**
28  * A component for providing CC/PP and UAProf support using the DELI
29  * library.
30  *
31  * @author <a HREF="mailto:marbut@hplb.hpl.hp.com">Mark H. Butler</a>
32  * @version CVS $Id: Deli.java 30932 2004-07-29 17:35:38Z vgritsenko $
33  */

34
35 public interface Deli extends Component {
36
37     String JavaDoc ROLE = Deli.class.getName();
38
39     /**
40      * Convert a profile stored as a vector of profile attributes
41      * to a DOM tree.
42      *
43      *@param theRequest The Request.
44      *@return The DOM tree.
45      */

46     Document JavaDoc getUACapabilities(Request theRequest)
47     throws IOException JavaDoc, Exception JavaDoc;
48
49     Profile getProfile(Request theRequest)
50     throws IOException JavaDoc, ServletException JavaDoc, Exception JavaDoc;
51 }
52
53
Popular Tags