org.javaswift.joss.headers.object.conditional
Class IfModifiedSince

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.DateHeader
          extended by org.javaswift.joss.headers.object.conditional.AbstractIfSince
              extended by org.javaswift.joss.headers.object.conditional.IfModifiedSince

public class IfModifiedSince
extends AbstractIfSince


Field Summary
static String IF_MODIFIED_SINCE
           
 
Constructor Summary
IfModifiedSince(Date date)
           
IfModifiedSince(Long milliseconds)
           
IfModifiedSince(String sinceDate)
           
 
Method Summary
 String getHeaderName()
          Returns the header name that must be set in the request.
 void sinceAgainst(Date modificationDate)
          Makes a check against the sinceDate and throws an exception (with the proper HTTP status code) if the value means no content should be returned.
 
Methods inherited from class org.javaswift.joss.headers.object.conditional.AbstractIfSince
getHeaderValue, getSinceDate
 
Methods inherited from class org.javaswift.joss.headers.DateHeader
convertDateToString, convertStringToDate, getDate
 
Methods inherited from class org.javaswift.joss.headers.Header
convertResponseHeader, getResponseHeadersStartingWith, headerNotEmpty, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IF_MODIFIED_SINCE

public static final String IF_MODIFIED_SINCE
See Also:
Constant Field Values
Constructor Detail

IfModifiedSince

public IfModifiedSince(Long milliseconds)

IfModifiedSince

public IfModifiedSince(String sinceDate)
                throws org.apache.http.impl.cookie.DateParseException
Throws:
org.apache.http.impl.cookie.DateParseException

IfModifiedSince

public IfModifiedSince(Date date)
Method Detail

sinceAgainst

public void sinceAgainst(Date modificationDate)
Description copied from class: AbstractIfSince
Makes a check against the sinceDate and throws an exception (with the proper HTTP status code) if the value means no content should be returned.

Specified by:
sinceAgainst in class AbstractIfSince
Parameters:
modificationDate - the value to match against

getHeaderName

public String getHeaderName()
Description copied from class: Header
Returns the header name that must be set in the request. Eg, "Range"

Specified by:
getHeaderName in class Header
Returns:
the name for the request header


Copyright © 2012-2014 42 BV. All Rights Reserved.