getScheme获取的是使用的协议: http 或https getProtocol获取的是协议的名称: HTTP/1.11 getServerName获取的是域名 : xxx.com getLocalName获取到的是IP