Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » tomcat » util » http » [javadoc | source]
org.apache.tomcat.util.http
public class: HttpMessages [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.http.HttpMessages
Handle (internationalized) HTTP messages.
Field Summary
protected static  StringManager sm     
static  String st_200     
static  String st_302     
static  String st_400     
static  String st_404     
Method from org.apache.tomcat.util.http.HttpMessages Summary:
filter,   getMessage
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.http.HttpMessages Detail:
 public static String filter(String message) 
    Filter the specified message string for characters that are sensitive in HTML. This avoids potential attacks caused by including JavaScript codes in the request URL that is often reported in error messages.
 public static String getMessage(int status) 
    Get the status string associated with a status code. No I18N - return the messages defined in the HTTP spec. ( the user isn't supposed to see them, this is the last thing to translate) Common messages are cached.