Enclosing class:
Authenticator
Indicates an authentication must be retried. The
response code to be sent back is as returned from
getResponseCode()
. The
Authenticator
must also have
set any necessary response headers in the given
HttpExchange
before returning this
Retry
object.
Constructor Summary
Constructors
Creates a Retry
instance with given response code.
Method Summary
All Methods Instance Methods Concrete Methods
int
Returns the response code to send to the client.
Methods declared in class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
Retry
public Retry (int responseCode)
Creates a Retry
instance with given response code.
Parameters:
responseCode
- the response code to associate with this
Retry
instance
Method Details
getResponseCode
public int getResponseCode ()
Returns the response code to send to the client.
Returns:
the response code associated with this Retry
instance
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2024, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .