@Response(code=226, description="IM Used") public class IMUsed extends HttpResponse
The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static IMUsed |
INSTANCE
Reusable instance.
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
IMUsed()
Constructor using HTTP-standard message.
|
IMUsed(String message)
Constructor using custom message.
|
Modifier and Type | Method and Description |
---|---|
IMUsed |
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 IMUsed()
public IMUsed 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.