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: * $Header:$
18: */
19: package org.apache.beehive.netui.pageflow;
20:
21: import javax.servlet.http.HttpServletRequest;
22: import javax.servlet.http.HttpServletResponse;
23:
24: /**
25: * Interface for controller classes that resolve actions to URIs.
26: *
27: * @deprecated This is a legacy interface that is implemented by {@link PageFlowController}, but unused in the framework.
28: */
29: public interface ActionResolver {
30: /**
31: * Get the URI for addressing this object.
32: *
33: * @return a String that is the URI, relative to the webapp root, for addressing this object.
34: */
35: public String getURI();
36:
37: /**
38: * Get the Struts module path associated with this ActionResolver.
39: */
40: public String getModulePath();
41:
42: /**
43: * Called on this object for non-lookup (refresh) requests.
44: */
45: public void refresh(HttpServletRequest request,
46: HttpServletResponse response);
47:
48: /**
49: * Tell whether this ActionResolver is a {@link PageFlowController}.
50: *
51: * @return <code>true</code> if this is a {@link PageFlowController}.
52: */
53: public boolean isPageFlow();
54: }
|