@Response(code=204, description="No Content") public class NoContent extends HttpResponse
The server successfully processed the request and is not returning any content.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static NoContent |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
NoContent()
Constructor using HTTP-standard message.
|
NoContent(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
NoContent |
header(String name,
Object val)
Add an HTTP header to this response.
|
getHeaders, toString
public static final int CODE
public static final String MESSAGE
public NoContent()
public NoContent header(String name, Object val)
HttpResponse
header
in class HttpResponse
name
- The header name.val
- The header value.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.