import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
-import java.text.SimpleDateFormat;
import java.util.Map;
import java.util.TimeZone;
*/
private static final StringManager sm =
StringManager.getManager("org.apache.catalina.util");
-
- /**
- * The DateFormat to use for generating readable dates in cookies.
- */
- private static SimpleDateFormat format =
- new SimpleDateFormat(" EEEE, dd-MMM-yy kk:mm:ss zz");
-
- static {
- format.setTimeZone(TimeZone.getTimeZone("GMT"));
- }
/**
}
parseParameters(map, bytes, encoding);
} catch (UnsupportedEncodingException uee) {
- log.debug(sm.getString("requestUtil.parseParameters.uee",
- encoding), uee);
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("requestUtil.parseParameters.uee",
+ encoding), uee);
+ }
}
}
bytes = str.getBytes(B2CConverter.getCharset(enc));
}
} catch (UnsupportedEncodingException uee) {
- log.debug(sm.getString("requestUtil.urlDecode.uee", enc), uee);
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("requestUtil.urlDecode.uee", enc), uee);
+ }
}
return URLDecode(bytes, enc, isQuery);
try {
return new String(bytes, 0, ox, B2CConverter.getCharset(enc));
} catch (UnsupportedEncodingException uee) {
- log.debug(sm.getString("requestUtil.urlDecode.uee", enc), uee);
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("requestUtil.urlDecode.uee", enc), uee);
+ }
return null;
}
}
}
}
-
-
-
}