NotModified
@Response(code=304, description="Not Modified") @Deprecated public class NotModified extends HttpResponse
Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match. In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
Deprecated.
HTTP status code
|
static NotModified |
INSTANCE
Deprecated.
Reusable instance.
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
NotModified()
Deprecated.
Constructor using HTTP-standard message.
|
NotModified(String message)
Deprecated.
Constructor using custom message.
|
public static final int CODE
public static final String MESSAGE
public static final NotModified INSTANCE
public NotModified()
public NotModified(String message)
message
- Message to send as the response.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.