| 194 | } |
| 195 | |
| 196 | const char* HttpServletRequest::getCookieValue(const char* name) const |
| 197 | { |
| 198 | (void) getCookies(); |
| 199 | |
| 200 | std::vector<HttpCookie*>::const_iterator cit = cookies_.begin(); |
| 201 | for (; cit != cookies_.end(); ++cit) { |
| 202 | const char* ptr = (*cit)->getName(); |
| 203 | if (ptr && strcmp(name, ptr) == 0) { |
| 204 | return (*cit)->getValue(); |
| 205 | } |
| 206 | } |
| 207 | return NULL; |
| 208 | } |
| 209 | |
| 210 | const char* HttpServletRequest::getHeader(const char* name) const |
| 211 | { |
no test coverage detected