com.sun.ws.rest.api.response
Class NotModified

java.lang.Object
  extended by com.sun.ws.rest.api.response.HttpResponse
      extended by com.sun.ws.rest.api.response.NotModified

public class NotModified
extends HttpResponse

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

NotModified

public NotModified()
Create a new instance.


NotModified

public NotModified(java.lang.String eTag)
Create a new instance

Parameters:
eTag - an ETag that will be returned with the response.

NotModified

public NotModified(EntityTag eTag)
Create a new instance

Parameters:
eTag - an ETag that will be returned with the response.
Method Detail

getETag

public EntityTag getETag()
Get the eTag.

Returns:
the eTag.

setETag

public void setETag(EntityTag eTag)
Set the eTag.

Parameters:
eTag - the eTag.

setETag

public void setETag(java.lang.String eTag)
Set the eTag.

Parameters:
eTag - the eTag.

addResponseHeaders

public void addResponseHeaders(HttpContext context)
Add the HTTP headers for this type of response to the response context.

Overrides:
addResponseHeaders in class HttpResponse
Parameters:
context - the current HTTP context