public class ServerDetails
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
environment_name |
java.lang.String |
hostname |
java.lang.String |
project_root |
| Constructor and Description |
|---|
ServerDetails() |
ServerDetails(java.lang.String environment_name,
java.lang.String hostname,
java.lang.String project_root) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
environment()
Finds the name of the environment by looking at a few common Java
system properties and/or environment variables.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
protected static java.lang.String |
hostname()
Attempt to find the hostname of the system reporting the error to
Honeybadger.
|
protected static java.lang.String |
projectRoot()
Finds the directory in which the JVM was started.
|
public final java.lang.String environment_name
public final java.lang.String hostname
public final java.lang.String project_root
public ServerDetails()
public ServerDetails(java.lang.String environment_name,
java.lang.String hostname,
java.lang.String project_root)
protected static java.lang.String environment()
protected static java.lang.String hostname()
protected static java.lang.String projectRoot()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object