return path;
}
+ public void outputFile() {
+ StringBuffer sb=new StringBuffer(hostname);
+ sb.append(path);
+ FileOutputStream fos=new FileOutputStream(sb.toString().replace('/','#'));
+ fos.write(response.toString().getBytes());
+ fos.close();
+ }
+
public String makewebcanonical(String page) {
StringBuffer b=new StringBuffer(getHostName(page));
b.append("/");
int nextindex=page.indexOf('/',beginindex+1);
if ((beginindex==-1)||(nextindex==-1))
return new String("index.html");
- return page.subString(nextindex+1, page.length()-1);
+ return page.subString(nextindex+1, page.length());
}
}
}