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

com.danielflower.apprunner.router.monitoring.RequestInfo Maven / Gradle / Ivy

There is a newer version: 1.11.6
Show newest version
package com.danielflower.apprunner.router.monitoring;

import org.json.JSONObject;

public class RequestInfo {
    public long startTime;
    public long endTime;
    public String appName;
    public String remoteAddr;
    public String method;
    public int responseStatus;
    public String url;
    public String targetHost;

    public String toJSON() {
        return new JSONObject()
            .put("remote", remoteAddr)
            .put("method", method)
            .put("url", url)
            .put("app", appName)
            .put("targetHost", targetHost)
            .put("start", startTime)
            .put("end", endTime)
            .put("status", responseStatus)
            .toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy