@Response(code=101, description="Switching Protocols") public class SwitchingProtocols extends HttpResponse
HTTP 101 Switching Protocols
response.
The requester has asked the server to switch protocols and the server has agreed to do so.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static SwitchingProtocols |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
SwitchingProtocols()
Constructor using HTTP-standard message.
|
SwitchingProtocols(String message)
Constructor using custom message.
|
public static final int CODE
public static final String MESSAGE
public static final SwitchingProtocols INSTANCE
public SwitchingProtocols()
public SwitchingProtocols(String message)
message
- Message to send as the response.Copyright © 2018 Apache. All rights reserved.