(这条文章已经被阅读了 57 次) 时间:2001-04-11 08:54:39 来源:szxyz (zjxyz) 原创-IT
HttpStatusCodes.java
—————————————-
package http;
public class HttpStatusCodes{
String StatusCode200=”HTTP/1.0 200 OK”;
String StatusCode403=”HTTP/1.0 403 Forbidden”;
String StatusCode404=”HTTP/1.0 404 Not Found”;
String StatusCode405=”HTTP/1.0 405 Method Not Allowed”;
public String toString(int code){
switch(code){
case 200: return StatusCode200;
case 403: return StatusCode403;
case 404: return StatusCode404;
case 405: return StatusCode405;
}
return null;
}
}//end class HttpStatusCodes
作者:XYZ※版权所有,
转载请注明来源
【CGI编程设计室】
http://zjxyz.yeah.net