01: package org.apache.turbine.util.uri;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "License"); you may not use this file except in compliance
10: * with the License. You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing,
15: * software distributed under the License is distributed on an
16: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17: * KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations
19: * under the License.
20: */
21:
22: /**
23: * An interface class which describes the absolute minimum of methods that
24: * a Turbine URI class must implement.
25: *
26: * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
27: * @version $Id: URI.java 534527 2007-05-02 16:10:59Z tv $
28: */
29:
30: public interface URI {
31: /**
32: * Gets the script name (/servlets/Turbine).
33: *
34: * @return A String with the script name.
35: */
36: String getScriptName();
37:
38: /**
39: * Gets the context path.
40: *
41: * @return A String with the context path.
42: */
43: String getContextPath();
44:
45: /**
46: * Gets the server name.
47: *
48: * @return A String with the server name.
49: */
50: String getServerName();
51:
52: /**
53: * Gets the server port.
54: *
55: * @return A String with the server port.
56: */
57: int getServerPort();
58:
59: /**
60: * Returns the current Server Scheme
61: *
62: * @return The current Server scheme
63: *
64: */
65: String getServerScheme();
66:
67: /**
68: * Returns the current reference anchor.
69: *
70: * @return A String containing the reference.
71: */
72: String getReference();
73: }
|