All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vproxy.base.util.web.ErrorPages Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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 + "
" + title + "
" + description + "
" + message + "
" + buttonMsg + "
\n"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy