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

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
Direct Known Subclasses:
IfModifiedSince, IfUnmodifiedSince

public abstract class AbstractIfSince
extends DateHeader


Constructor Summary
AbstractIfSince(Date sinceDate)
           
AbstractIfSince(Long milliseconds)
           
AbstractIfSince(String sinceDate)
           
 
Method Summary
 String getHeaderValue()
          Returns the value that must be set in the request.
 Date getSinceDate()
           
abstract  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.DateHeader
convertDateToString, convertStringToDate, getDate
 
Methods inherited from class org.javaswift.joss.headers.Header
convertResponseHeader, getHeaderName, getResponseHeadersStartingWith, headerNotEmpty, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIfSince

public AbstractIfSince(Long milliseconds)

AbstractIfSince

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

AbstractIfSince

public AbstractIfSince(Date sinceDate)
Method Detail

getSinceDate

public Date getSinceDate()

sinceAgainst

public abstract 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.

Parameters:
modificationDate - the value to match against

getHeaderValue

public String getHeaderValue()
Description copied from class: Header
Returns the value that must be set in the request. Eg, "bytes: 4-12"

Specified by:
getHeaderValue in class Header
Returns:
the value for the request header


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