@Response(code=511, description="Network Authentication Required") @Deprecated public class NetworkAuthenticationRequired extends RestException
The client needs to authenticate to gain network access.
Intended for use by intercepting proxies used to control access to the network (e.g., "captive portals" used to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).
Modifier and Type | Field and Description |
---|---|
static int |
CODE
Deprecated.
HTTP status code
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
NetworkAuthenticationRequired()
Deprecated.
Constructor.
|
NetworkAuthenticationRequired(String msg)
Deprecated.
Constructor.
|
NetworkAuthenticationRequired(String msg,
Object... args)
Deprecated.
Constructor.
|
NetworkAuthenticationRequired(Throwable cause)
Deprecated.
Constructor.
|
NetworkAuthenticationRequired(Throwable cause,
String msg,
Object... args)
Deprecated.
Constructor.
|
getFullStackMessage, getOccurrence, getRootCause, getStatus, hashCode, setOccurrence, setStatus, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int CODE
public static final String MESSAGE
public NetworkAuthenticationRequired(Throwable cause, String msg, Object... args)
cause
- The cause. Can be msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public NetworkAuthenticationRequired(String msg)
msg
- The message. Can be public NetworkAuthenticationRequired()
public NetworkAuthenticationRequired(String msg, Object... args)
msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public NetworkAuthenticationRequired(Throwable cause)
cause
- The cause. Can be Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.