String val) {
try {
BigInteger bi = new BigInteger (val);
if (bi.equals (ZERO)) {
if (header.getMethod ().equals ("TRACE")) {
HttpHeader ret = con.getHttpGenerator ().get200 ();
ret.setContent (header.toString ());
return ret;
} else {
HttpHeader ret = con.getHttpGenerator ().get200 ();
ret.setHeader ("Allow", "GET,HEAD,POST,OPTIONS,TRACE");
ret.setHeader ("Content-Length", "0");
return ret;
}
} else {
BigInteger b3 = bi.subtract (ONE);
header.setHeader ("Max-Forwards", b3.toString ());