io.vproxy.base.util.web.ErrorPages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
a commons library extracted from vproxy base module
package io.vproxy.base.util.web;
import java.util.Date;
public class ErrorPages {
private ErrorPages() {
}
public static String build(int code, String statusMsg, String msg, String rawIp, String xffIp) {
return build(code + " " + statusMsg, msg, " current server time " + new Date() + "
request raw ip " + rawIp + "
x-forwarded-for ip " + xffIp + "
");
}
public static String build(String title, String description, String message) {
return build(title, description, message, "Build something amazing", "https://github.com/wkgcass/vproxy");
}
public static String build(String title, String description, String message, String buttonMsg, String buttonDirect) {
return " " + title + " \n";
}
}