Java Authenticator getRequestingScheme() MethodThe getRequestingScheme() method of Authenticator class is used to get the scheme of the requester (the HTTP scheme for an HTTP firewall, for example). Syntax:Parameter:No parameter is passed. Return:The scheme of the requester. Throw:Does not throw the exception. Example 1Test it NowOutput: Host using url.getHost ::www.javatpoint.com Scheme:null // Source code of https://www.javatpoint.com is printed. Example 2Test it NowOutput: Scheme :null Protocol:https // Source code of https://www.javatpoint.com is printed. Next TopicgetRequestingSite() Method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India