Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Provides a convenient implementation of the ServletRequest interface that
can be subclassed by developers wishing to adapt the request to a Servlet.
This class implements the Wrapper or Decorator pattern. Methods default to
calling through to the wrapped request object.
- Version:
- $Rev: 46019 $ $Date: 2004-09-14 04:56:06 -0500 (Tue, 14 Sep 2004) $
- Since:
- Servlet 2.3
- See also:
ServletRequest
Creates a ServletRequest adaptor wrapping the given request object.
Return the wrapped request object.
Sets the request object being wrapped.
The default behavior of this method is to call getAttribute(String name)
on the wrapped request object.
The default behavior of this method is to return getAttributeNames()
on the wrapped request object.
The default behavior of this method is to return getCharacterEncoding()
on the wrapped request object.
The default behavior of this method is to set the character encoding
on the wrapped request object.
The default behavior of this method is to return getContentLength()
on the wrapped request object.
The default behavior of this method is to return getContentType()
on the wrapped request object.
The default behavior of this method is to return getInputStream()
on the wrapped request object.
The default behavior of this method is to return getParameter(String name)
on the wrapped request object.
The default behavior of this method is to return getParameterMap()
on the wrapped request object.
The default behavior of this method is to return getParameterNames()
on the wrapped request object.
The default behavior of this method is to return getParameterValues(String name)
on the wrapped request object.
The default behavior of this method is to return getProtocol()
on the wrapped request object.
The default behavior of this method is to return getScheme()
on the wrapped request object.
The default behavior of this method is to return getServerName()
on the wrapped request object.
The default behavior of this method is to return getServerPort()
on the wrapped request object.
The default behavior of this method is to return getReader()
on the wrapped request object.
The default behavior of this method is to return getRemoteAddr()
on the wrapped request object.
The default behavior of this method is to return getRemoteHost()
on the wrapped request object.
The default behavior of this method is to return setAttribute(String name, Object o)
on the wrapped request object.
The default behavior of this method is to call removeAttribute(String name)
on the wrapped request object.
The default behavior of this method is to return getLocale()
on the wrapped request object.
The default behavior of this method is to return getLocales()
on the wrapped request object.
The default behavior of this method is to return isSecure()
on the wrapped request object.
The default behavior of this method is to return getRequestDispatcher(String path)
on the wrapped request object.
The default behavior of this method is to return getRealPath(String path)
on the wrapped request object.
The default behavior of this method is to return
getRemotePort() on the wrapped request object.
The default behavior of this method is to return
getLocalName() on the wrapped request object.
The default behavior of this method is to return
getLocalAddr() on the wrapped request object.
The default behavior of this method is to return
getLocalPort() on the wrapped request object.