Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 217 |  | Methods: | 26
| NCLOC: | 94 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
ServletRequestWrapper.java | - | 0% | 0% | 0% |

1 |  |
     /*
2 |  |
      * Joey and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      */
5 |  |
     package org.asyrinx.brownie.servlet;
6 |  |
7 |  |
     import java.io.BufferedReader;
8 |  |
     import java.io.IOException;
9 |  |
     import java.io.UnsupportedEncodingException;
10 |  |
     import java.util.Enumeration;
11 |  |
     import java.util.Locale;
12 |  |
     import java.util.Map;
13 |  |
14 |  |
     import javax.servlet.RequestDispatcher;
15 |  |
     import javax.servlet.ServletInputStream;
16 |  |
     import javax.servlet.ServletRequest;
17 |  |
18 |  |
     import org.asyrinx.brownie.core.util.Wrapper;
19 |  |
20 |  |
     /**
21 |  |
      * @author Akima
22 |  |
      */
23 |  |
     public class ServletRequestWrapper extends Wrapper implements ServletRequest {
24 |  |
25 |  |
         /**
26 |  |
          * Constructor for ServletRequestWrapper.
27 |  |
          */
28 | 0 |
         public ServletRequestWrapper(ServletRequest servletRequest) {
29 | 0 |
             super(servletRequest);
30 | 0 |
             this.servletRequest = servletRequest;
31 |  |
         }
32 |  |
33 |  |
         protected final ServletRequest servletRequest;
34 |  |
35 |  |
         /**
36 |  |
          * @see javax.servlet.ServletRequest#getAttribute(String)
37 |  |
          */
38 | 0 |
         public Object getAttribute(String name) {
39 | 0 |
             return servletRequest.getAttribute(name);
40 |  |
         }
41 |  |
42 |  |
         /**
43 |  |
          * @see javax.servlet.ServletRequest#getAttributeNames()
44 |  |
          */
45 | 0 |
         public Enumeration getAttributeNames() {
46 | 0 |
             return servletRequest.getAttributeNames();
47 |  |
         }
48 |  |
49 |  |
         /**
50 |  |
          * @see javax.servlet.ServletRequest#getCharacterEncoding()
51 |  |
          */
52 | 0 |
         public String getCharacterEncoding() {
53 | 0 |
             return servletRequest.getCharacterEncoding();
54 |  |
         }
55 |  |
56 |  |
         /**
57 |  |
          * @see javax.servlet.ServletRequest#getContentLength()
58 |  |
          */
59 | 0 |
         public int getContentLength() {
60 | 0 |
             return servletRequest.getContentLength();
61 |  |
         }
62 |  |
63 |  |
         /**
64 |  |
          * @see javax.servlet.ServletRequest#getContentType()
65 |  |
          */
66 | 0 |
         public String getContentType() {
67 | 0 |
             return servletRequest.getContentType();
68 |  |
         }
69 |  |
70 |  |
         /**
71 |  |
          * @see javax.servlet.ServletRequest#getInputStream()
72 |  |
          */
73 | 0 |
         public ServletInputStream getInputStream() throws IOException {
74 | 0 |
             return servletRequest.getInputStream();
75 |  |
         }
76 |  |
77 |  |
         /**
78 |  |
          * @see javax.servlet.ServletRequest#getParameter(String)
79 |  |
          */
80 | 0 |
         public String getParameter(String name) {
81 | 0 |
             return servletRequest.getParameter(name);
82 |  |
         }
83 |  |
84 |  |
         /**
85 |  |
          * @see javax.servlet.ServletRequest#getParameterNames()
86 |  |
          */
87 | 0 |
         public Enumeration getParameterNames() {
88 | 0 |
             return servletRequest.getParameterNames();
89 |  |
         }
90 |  |
91 |  |
         /**
92 |  |
          * @see javax.servlet.ServletRequest#getParameterValues(String)
93 |  |
          */
94 | 0 |
         public String[] getParameterValues(String name) {
95 | 0 |
             return servletRequest.getParameterValues(name);
96 |  |
         }
97 |  |
98 |  |
         /**
99 |  |
          * @see javax.servlet.ServletRequest#getProtocol()
100 |  |
          */
101 | 0 |
         public String getProtocol() {
102 | 0 |
             return servletRequest.getProtocol();
103 |  |
         }
104 |  |
105 |  |
         /**
106 |  |
          * @see javax.servlet.ServletRequest#getScheme()
107 |  |
          */
108 | 0 |
         public String getScheme() {
109 | 0 |
             return servletRequest.getScheme();
110 |  |
         }
111 |  |
112 |  |
         /**
113 |  |
          * @see javax.servlet.ServletRequest#getServerName()
114 |  |
          */
115 | 0 |
         public String getServerName() {
116 | 0 |
             return servletRequest.getServerName();
117 |  |
         }
118 |  |
119 |  |
         /**
120 |  |
          * @see javax.servlet.ServletRequest#getServerPort()
121 |  |
          */
122 | 0 |
         public int getServerPort() {
123 | 0 |
             return servletRequest.getServerPort();
124 |  |
         }
125 |  |
126 |  |
         /**
127 |  |
          * @see javax.servlet.ServletRequest#getReader()
128 |  |
          */
129 | 0 |
         public BufferedReader getReader() throws IOException {
130 | 0 |
             return servletRequest.getReader();
131 |  |
         }
132 |  |
133 |  |
         /**
134 |  |
          * @see javax.servlet.ServletRequest#getRemoteAddr()
135 |  |
          */
136 | 0 |
         public String getRemoteAddr() {
137 | 0 |
             return servletRequest.getRemoteAddr();
138 |  |
         }
139 |  |
140 |  |
         /**
141 |  |
          * @see javax.servlet.ServletRequest#getRemoteHost()
142 |  |
          */
143 | 0 |
         public String getRemoteHost() {
144 | 0 |
             return servletRequest.getRemoteHost();
145 |  |
         }
146 |  |
147 |  |
         /**
148 |  |
          * @see javax.servlet.ServletRequest#setAttribute(String, Object)
149 |  |
          */
150 | 0 |
         public void setAttribute(String name, Object o) {
151 | 0 |
             servletRequest.setAttribute(name, o);
152 |  |
         }
153 |  |
154 |  |
         /**
155 |  |
          * @see javax.servlet.ServletRequest#removeAttribute(String)
156 |  |
          */
157 | 0 |
         public void removeAttribute(String name) {
158 | 0 |
             servletRequest.removeAttribute(name);
159 |  |
         }
160 |  |
161 |  |
         /**
162 |  |
          * @see javax.servlet.ServletRequest#getLocale()
163 |  |
          */
164 | 0 |
         public Locale getLocale() {
165 | 0 |
             return servletRequest.getLocale();
166 |  |
         }
167 |  |
168 |  |
         /**
169 |  |
          * @see javax.servlet.ServletRequest#getLocales()
170 |  |
          */
171 | 0 |
         public Enumeration getLocales() {
172 | 0 |
             return servletRequest.getLocales();
173 |  |
         }
174 |  |
175 |  |
         /**
176 |  |
          * @see javax.servlet.ServletRequest#isSecure()
177 |  |
          */
178 | 0 |
         public boolean isSecure() {
179 | 0 |
             return servletRequest.isSecure();
180 |  |
         }
181 |  |
182 |  |
         /**
183 |  |
          * @see javax.servlet.ServletRequest#getRequestDispatcher(String)
184 |  |
          */
185 | 0 |
         public RequestDispatcher getRequestDispatcher(String path) {
186 | 0 |
             return servletRequest.getRequestDispatcher(path);
187 |  |
         }
188 |  |
189 |  |
         //private final Logger log = LoggerFactory.getLog(this.getClass());
190 |  |
191 |  |
         /**
192 |  |
          * @see javax.servlet.ServletRequest#getRealPath(String)
193 |  |
          * @deprecated
194 |  |
          */
195 | 0 |
         public String getRealPath(String path) {
196 | 0 |
             throw new UnsupportedOperationException(
197 |  |
                     "javax.servlet.ServletRequest#getRealPath(String) は推奨されません。javax.servlet.ServletContext.getRealPath(java.lang.String)");
198 |  |
             //return servletRequest.getRealPath(path);
199 |  |
         }
200 |  |
201 |  |
         /**
202 |  |
          * @return
203 |  |
          */
204 | 0 |
         public Map getParameterMap() {
205 | 0 |
             return servletRequest.getParameterMap();
206 |  |
         }
207 |  |
208 |  |
         /**
209 |  |
          * @param arg0
210 |  |
          * @throws java.io.UnsupportedEncodingException
211 |  |
          */
212 | 0 |
         public void setCharacterEncoding(String arg0)
213 |  |
                 throws UnsupportedEncodingException {
214 | 0 |
             servletRequest.setCharacterEncoding(arg0);
215 |  |
         }
216 |  |
217 |  |
     }