1 /*
2 * ========================================================================
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership.
7 * The ASF licenses this file to You under the Apache License, Version 2.0
8 * (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 * ========================================================================
20 */
21 package org.apache.cactus.server;
22
23 import javax.servlet.http.HttpServletRequest;
24
25 import org.apache.cactus.ServletURL;
26
27 /**
28 * Provide implementation of
29 * {@link javax.servlet.http.HttpServletRequest} for the Servlet 2.4
30 * API specifications.
31 *
32 * @see AbstractHttpServletRequestWrapper23
33 * @version $Id: HttpServletRequestWrapper.java 238993 2004-05-22 16:39:34Z vmassol $
34 */
35 public class HttpServletRequestWrapper
36 extends AbstractHttpServletRequestWrapper23
37 {
38 /**
39 * {@inheritDoc}
40 * @see AbstractHttpServletRequestWrapper23#AbstractHttpServletRequestWrapper23(HttpServletRequest, ServletURL)
41 */
42 public HttpServletRequestWrapper(HttpServletRequest theRequest,
43 ServletURL theURL)
44 {
45 super(theRequest, theURL);
46 }
47
48 // Unmodified methods --------------------------------------------------
49
50 /**
51 * {@inheritDoc}
52 * @see javax.servlet.ServletRequest#getRemotePort()
53 */
54 public int getRemotePort()
55 {
56 // TODO: Support simulation URL
57 return this.request.getRemotePort();
58 }
59
60 /**
61 * {@inheritDoc}
62 * @see javax.servlet.ServletRequest#getLocalName()
63 */
64 public String getLocalName()
65 {
66 // TODO: Support simulation URL
67 return this.request.getLocalName();
68 }
69
70 /**
71 * {@inheritDoc}
72 * @see javax.servlet.ServletRequest#getLocalAddr()
73 */
74 public String getLocalAddr()
75 {
76 // TODO: Support simulation URL
77 return this.request.getLocalAddr();
78 }
79
80 /**
81 * {@inheritDoc}
82 * @see javax.servlet.ServletRequest#getLocalPort()
83 */
84 public int getLocalPort()
85 {
86 // TODO: Support simulation URL
87 return this.request.getLocalPort();
88 }
89 }