01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.pluto;
18:
19: /**
20: * Constant values used to bind internal portlet objects as attributes,
21: * typically to a request.
22: * @version 1.0
23: */
24: public class Constants {
25:
26: /**
27: * The key used to bind the <code>PortletRequest</code> to the underlying
28: * <code>HttpServletRequest</code>.
29: */
30: public final static String PORTLET_REQUEST = "javax.portlet.request";
31:
32: /**
33: * The key used to bind the <code>PortletResponse</code> to the underlying
34: * <code>HttpServletRequest</code>.
35: */
36: public final static String PORTLET_RESPONSE = "javax.portlet.response";
37:
38: /**
39: * The key used to bind the <code>PortletConfig</code> to the underlying
40: * PortletConfig.
41: */
42: public final static String PORTLET_CONFIG = "javax.portlet.config";
43:
44: /**
45: *
46: */
47: public final static String TITLE_KEY = "javax.portlet.title";
48:
49: /**
50: *
51: */
52: public final static String SHORT_TITLE_KEY = "javax.portlet.short-title";
53:
54: /**
55: *
56: */
57: public final static String KEYWORDS_KEY = "javax.portlet.keywords";
58:
59: /**
60: * The key used to bind the method of processing being requested by the
61: * container to the underlying <code>PortletRquest</code>.
62: */
63: public final static String METHOD_ID = "org.apache.pluto.core.method";
64:
65: /**
66: * The unique method identifier for render requests. Render requests are
67: * requested through a call to the {@link PortletContainer#doRender(org.apache.pluto.PortletWindow,
68: * javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)}
69: * method.
70: */
71: public final static Integer METHOD_RENDER = new Integer(1);
72:
73: /**
74: * The unique method identifier for render requests. Render requests are
75: * requested through a call to the {@link PortletContainer#doAction(org.apache.pluto.PortletWindow,
76: * javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)}
77: * method.
78: */
79: public final static Integer METHOD_ACTION = new Integer(3);
80:
81: /**
82: * The unique method identifier for noop (load) requests. Load requests are
83: * requested through a call to the {@link PortletContainer#doLoad(org.apache.pluto.PortletWindow,
84: * javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)}
85: * method.
86: */
87: public final static Integer METHOD_NOOP = new Integer(5);
88:
89: /**
90: * The unique method identifier for admin requests. Admin requests
91: * are requested through a call to the {@link PortletContainer#doAdmin(PortletWindow, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)}
92: * method.
93: */
94: public final static Integer METHOD_ADMIN = new Integer(7);
95: }
|