|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.ws.rest.api.response.HttpResponse com.sun.ws.rest.api.response.NotModified
public class NotModified
An abstraction for a HTTP response to a request containing preconditions that indicates that a resource has not been modified.
Constructor Summary | |
---|---|
NotModified()
Create a new instance. |
|
NotModified(EntityTag eTag)
Create a new instance |
|
NotModified(java.lang.String eTag)
Create a new instance |
Method Summary | |
---|---|
void |
addResponseHeaders(HttpContext context)
Add the HTTP headers for this type of response to the response context. |
EntityTag |
getETag()
Get the eTag. |
void |
setETag(EntityTag eTag)
Set the eTag. |
void |
setETag(java.lang.String eTag)
Set the eTag. |
Methods inherited from class com.sun.ws.rest.api.response.HttpResponse |
---|
getCacheControl, getCacheControl, getRepresentation, getStatus, setRepresentation, setStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotModified()
public NotModified(java.lang.String eTag)
eTag
- an ETag that will be returned with the response.public NotModified(EntityTag eTag)
eTag
- an ETag that will be returned with the response.Method Detail |
---|
public EntityTag getETag()
public void setETag(EntityTag eTag)
eTag
- the eTag.public void setETag(java.lang.String eTag)
eTag
- the eTag.public void addResponseHeaders(HttpContext context)
addResponseHeaders
in class HttpResponse
context
- the current HTTP context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |