KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > om > servlet > ServletDefinitionCtrl


1 /*
2  * Copyright 2003,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 /*
17
18  */

19
20 package org.apache.pluto.om.servlet;
21
22 import org.apache.pluto.om.common.DescriptionSet;
23 import org.apache.pluto.om.common.DisplayNameSet;
24
25 /**
26  * <P>
27  * The <CODE>ServletDefinitionCtrl</CODE> interface ...
28  * </P>
29  * <P>
30  * This interface defines the controller as known from the MVC pattern.
31  * Its purpose is to provide write access to the data stored in the model.
32  * </P>
33  */

34 public interface ServletDefinitionCtrl extends org.apache.pluto.om.Controller
35 {
36
37
38     /**
39      * Binds an identifier to this servlet
40      *
41      * @param id the new identifier
42      */

43     public void setId(String JavaDoc id);
44
45     /**
46      * Binds an servlet name to this servlet
47      *
48      * @param name the new servlet name
49      */

50     public void setServletName(String JavaDoc name);
51
52    /**
53      * Sets the descriptions
54      *
55      * @param descriptions the new description
56      */

57     public void setDescriptions(DescriptionSet descriptions);
58
59     /**
60      * Sets the display names
61      *
62      * @param displayNames the new display names
63      */

64     public void setDisplayNames(DisplayNameSet displayNames);
65
66     /**
67      * Sets the class name of this servlet
68      *
69      * @param servletClass the new class name
70      */

71     public void setServletClass(String JavaDoc servletClass);
72     
73     /**
74      * Sets the available date/time for this servlet, in milliseconds since the
75      * epoch. If this date/time is in the future the servlet is unavailable.
76      *
77      * @param available The new available date/time
78      */

79     public void setAvailable(long available);
80 }
81
Popular Tags