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