Java Authenticator getRequestingURL() MethodThe getRequestingURL() method of Authenticator class returns the URL that resulted in this request for authentication. Syntax:Parameter:No parameter is passed. Return:the requesting URL Throw:Does not throw the exception. Example 1Test it NowOutput: Port info ::-1 URL :null // source code of https://www.javatpoint.com is printed. Example 2Test it NowOutput: URL info :null Protocol:https //source code of https://www.javatpoint.com is printed. Next TopicgetRequestorType() Mehtod |
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