|
Awake SQL v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.awakefw.commons.api.server.util.ServerInfo
public class ServerInfo
Gets some server info, including info extracted from HttpServletRequest
at server startup.
Includes:
http(s)://www.acme.org
format.
Method Summary | |
---|---|
static String |
getHostname()
Returns the computer name (Hostname). |
static String |
getIpAddress()
Returns the computer IP address in 192.168.1.146 format. |
static String |
getMacAddress()
Returns the computer MAC address in 5C-26-0A-88-4E-DA format. |
static String |
getScheme()
Returns the name of the scheme used to make this request, for example, http, https, or ftp. |
static String |
getServerName()
Returns the host name of the server to which the request was sent. |
static int |
getServerPort()
Returns the port number to which the request was sent. |
static String |
getServerUrl()
Server URL (without the port) in http(s)://www.acme.org format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getHostname()
public static String getIpAddress()
public static String getMacAddress()
public static String getScheme()
HttpServletRequest
at server startup.
public static String getServerName()
HttpServletRequest
at server startup.
public static int getServerPort()
HttpServletRequest
at server startup.
public static String getServerUrl()
http(s)://www.acme.org
format.
HttpServletRequest
at server startup.
|
Awake SQL v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |