BBjHttpRequest::getServerName (Deprecated)
BBjHttpRequest::getServerName is deprecated for BBj 21.00 and higher, and has been replaced by BBxServletRequest::getServerName.
Description
In BBj 12.00 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
|