org.apache.abdera.protocol.util
Class AbstractRequest

java.lang.Object
  extended by org.apache.abdera.protocol.util.AbstractMessage
      extended by org.apache.abdera.protocol.util.AbstractRequest
All Implemented Interfaces:
Message, Request, ProtocolConstants
Direct Known Subclasses:
AbstractRequestContext, RequestOptions

public abstract class AbstractRequest
extends AbstractMessage
implements Request


Field Summary
protected  long max_stale
           
protected  long min_fresh
           
 
Fields inherited from class org.apache.abdera.protocol.util.AbstractMessage
flags, max_age
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Constructor Summary
AbstractRequest()
           
 
Method Summary
 String getAccept()
          Get the value of the Accept header
 String getAcceptCharset()
          Get the value of the Accept-Charset header
 String getAcceptEncoding()
          Get the value of the Accept-Encoding header
 String getAcceptLanguage()
          Get the value of the Accept-Language header
 String getAuthorization()
          Get the value of the Authorization header
 org.apache.abdera.util.EntityTag[] getIfMatch()
          Get a listing of Etags from the If-Match header
 Date getIfModifiedSince()
          Get the value of the If-Modified-Since header
 org.apache.abdera.util.EntityTag[] getIfNoneMatch()
          Get a listing of ETags from the If-None-Match header
 Date getIfUnmodifiedSince()
          Get the value of the If-Unmodified-Since header
 long getMaxStale()
          Get the max-stale value from the Cache-Control header
 long getMinFresh()
          Get the min-fresh value from the Cache-Control header
 boolean isOnlyIfCached()
          True if the only-if-cached directive is set in the Cache-Control header
 AbstractRequest setMaxAge(long max_age)
           
 AbstractRequest setMaxStale(long max_stale)
           
 AbstractRequest setMinFresh(long min_fresh)
           
 AbstractRequest setNoCache(boolean val)
           
 AbstractRequest setNoStore(boolean val)
           
 AbstractRequest setNoTransform(boolean val)
           
 AbstractRequest setOnlyIfCached(boolean val)
           
 
Methods inherited from class org.apache.abdera.protocol.util.AbstractMessage
check, getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
 

Field Detail

max_stale

protected long max_stale

min_fresh

protected long min_fresh
Constructor Detail

AbstractRequest

public AbstractRequest()
Method Detail

getAccept

public String getAccept()
Description copied from interface: Request
Get the value of the Accept header

Specified by:
getAccept in interface Request

getAcceptCharset

public String getAcceptCharset()
Description copied from interface: Request
Get the value of the Accept-Charset header

Specified by:
getAcceptCharset in interface Request

getAcceptEncoding

public String getAcceptEncoding()
Description copied from interface: Request
Get the value of the Accept-Encoding header

Specified by:
getAcceptEncoding in interface Request

getAcceptLanguage

public String getAcceptLanguage()
Description copied from interface: Request
Get the value of the Accept-Language header

Specified by:
getAcceptLanguage in interface Request

getAuthorization

public String getAuthorization()
Description copied from interface: Request
Get the value of the Authorization header

Specified by:
getAuthorization in interface Request

getIfMatch

public org.apache.abdera.util.EntityTag[] getIfMatch()
Description copied from interface: Request
Get a listing of Etags from the If-Match header

Specified by:
getIfMatch in interface Request

getIfModifiedSince

public Date getIfModifiedSince()
Description copied from interface: Request
Get the value of the If-Modified-Since header

Specified by:
getIfModifiedSince in interface Request

getIfNoneMatch

public org.apache.abdera.util.EntityTag[] getIfNoneMatch()
Description copied from interface: Request
Get a listing of ETags from the If-None-Match header

Specified by:
getIfNoneMatch in interface Request

getIfUnmodifiedSince

public Date getIfUnmodifiedSince()
Description copied from interface: Request
Get the value of the If-Unmodified-Since header

Specified by:
getIfUnmodifiedSince in interface Request

getMaxStale

public long getMaxStale()
Description copied from interface: Request
Get the max-stale value from the Cache-Control header

Specified by:
getMaxStale in interface Request

getMinFresh

public long getMinFresh()
Description copied from interface: Request
Get the min-fresh value from the Cache-Control header

Specified by:
getMinFresh in interface Request

isOnlyIfCached

public boolean isOnlyIfCached()
Description copied from interface: Request
True if the only-if-cached directive is set in the Cache-Control header

Specified by:
isOnlyIfCached in interface Request

setMaxAge

public AbstractRequest setMaxAge(long max_age)

setMaxStale

public AbstractRequest setMaxStale(long max_stale)

setMinFresh

public AbstractRequest setMinFresh(long min_fresh)

setNoCache

public AbstractRequest setNoCache(boolean val)

setNoStore

public AbstractRequest setNoStore(boolean val)

setNoTransform

public AbstractRequest setNoTransform(boolean val)

setOnlyIfCached

public AbstractRequest setOnlyIfCached(boolean val)


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.