Retrieves the value of the specified header from the request, handling null and "(null)" values. @param request The request object @param header The header name to retrieve @return The header value, or null if not present or equal to "(null)"
(Request request, String header)
| 199 | * @return The header value, or null if not present or equal to "(null)" |
| 200 | */ |
| 201 | public String mygetHeader(Request request, String header) { |
| 202 | String strcert0 = request.getHeader(header); |
| 203 | if (strcert0 == null) { |
| 204 | return null; |
| 205 | } |
| 206 | /* mod_header writes "(null)" when the ssl variable is no filled */ |
| 207 | if ("(null)".equals(strcert0)) { |
| 208 | return null; |
| 209 | } |
| 210 | return strcert0; |
| 211 | } |
| 212 | |
| 213 | |
| 214 | @Override |