@Response(code=300, description="Multiple Choices") public class MultipleChoices extends HttpResponse
Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation). For example, this code could be used to present multiple video format options, to list files with different filename extensions, or to suggest word-sense disambiguation.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static MultipleChoices |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
MultipleChoices()
Constructor using HTTP-standard message.
|
MultipleChoices(String message)
Constructor using custom message.
|
public static final int CODE
public static final String MESSAGE
public static final MultipleChoices INSTANCE
public MultipleChoices()
public MultipleChoices(String message)
message
- Message to send as the response.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.