
BBjHttpRequest::getServerName
Description
In BBj 12.0 and higher, this method returns the host-name of the server to which the request was sent. It is the value of the part before ":" in the Host header value, if any, or the resolved server name, or the server IP address.
Syntax
Return Value |
Method |
String |
getServerName() |
Parameters
None.
Return Value
a String containing the server name
Remarks
The example below shows getting the server name of the BBjServlet.
Example
|