org.browsermob.proxy.FirefoxErrorContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of browsermob-proxy Show documentation
Show all versions of browsermob-proxy Show documentation
A programmatic HTTP/S designed for performance and functional testing
package org.browsermob.proxy;
public enum FirefoxErrorContent {
CONN_FAILURE("Unable to connect", "Firefox can't establish a connection to the server at %s", FirefoxErrorConstants.SHARED_LONG_DESC),
DNS_NOT_FOUND("Server not found", "Firefox can't find the server at %s.", "\n"+
" - Check the address for typing errors such as\n"+
" ww.example.com instead of\n"+
" www.example.com
\n"+
" - If you are unable to load any pages, check your computer's network\n"+
" connection.
\n"+
" - If your computer or network is protected by a firewall or proxy, make sure\n"+
" that Firefox is permitted to access the Web.
\n"+
"
"),
GENERIC("Oops.", "Something went wrong.", "Firefox can't load this page for some reason.
"),
MALFORMED_URI("The address isn't valid", "The URL is not valid and cannot be loaded.", "\n" +
" - Web addresses are usually written like\n" +
" http://www.example.com/
\n" +
" - Make sure that you're using forward slashes (i.e.\n" +
" /).
\n" +
"
"),
NET_INTERRUPT("The connection was interrupted", "The connection to %s was interrupted while the page was loading.", FirefoxErrorConstants.SHARED_LONG_DESC),
NET_RESET("The connection was reset", "The connection to the server was reset while the page was loading.", FirefoxErrorConstants.SHARED_LONG_DESC),
NET_TIMEOUT("The connection has timed out", "The server at %s is taking too long to respond.", FirefoxErrorConstants.SHARED_LONG_DESC),
;
private String title;
private String shortDesc;
private String longDesc;
FirefoxErrorContent(String title, String shortDesc, String longDesc) {
this.title = title;
this.shortDesc = shortDesc;
this.longDesc = longDesc;
}
public String getTitle() {
return title;
}
public String getShortDesc() {
return shortDesc;
}
public String getLongDesc() {
return longDesc;
}
}