org.apache.abdera.protocol.util
Class AbstractRequest

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

public abstract class AbstractRequest
extends java.lang.Object
implements Request


Field Summary
protected  int flags
           
protected  long max_age
           
protected  long max_stale
           
protected  long min_fresh
           
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Constructor Summary
AbstractRequest()
           
 
Method Summary
 java.lang.String getAccept()
           
 java.lang.String getAcceptCharset()
           
 java.lang.String getAcceptEncoding()
           
 java.lang.String getAcceptLanguage()
           
 java.lang.String getAuthorization()
           
 java.lang.String getCacheControl()
           
 javax.activation.MimeType getContentType()
           
 java.lang.String getDecodedHeader(java.lang.String header)
           
 java.util.List<java.lang.String> getDecodedHeaders(java.lang.String header)
           
 java.lang.String getIfMatch()
           
 java.util.Date getIfModifiedSince()
           
 java.lang.String getIfNoneMatch()
           
 java.util.Date getIfUnmodifiedSince()
           
 long getMaxAge()
           
 long getMaxStale()
           
 long getMinFresh()
           
 java.lang.String getSlug()
           
 boolean isNoCache()
           
 boolean isNoStore()
           
 boolean isNoTransform()
           
 boolean isOnlyIfCached()
           
 void setMaxAge(long max_age)
           
 void setMaxStale(long max_stale)
           
 void setMinFresh(long min_fresh)
           
 void setNoCache(boolean val)
           
 void setNoStore(boolean val)
           
 void setNoTransform(boolean val)
           
 void setOnlyIfCached(boolean val)
           
 
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.Request
getDateHeader, getHeader, getHeaderNames, getHeaders
 

Field Detail

flags

protected int flags

max_age

protected long max_age

max_stale

protected long max_stale

min_fresh

protected long min_fresh
Constructor Detail

AbstractRequest

public AbstractRequest()
Method Detail

getAccept

public java.lang.String getAccept()
Specified by:
getAccept in interface Request

getAcceptCharset

public java.lang.String getAcceptCharset()
Specified by:
getAcceptCharset in interface Request

getAcceptEncoding

public java.lang.String getAcceptEncoding()
Specified by:
getAcceptEncoding in interface Request

getAcceptLanguage

public java.lang.String getAcceptLanguage()
Specified by:
getAcceptLanguage in interface Request

getAuthorization

public java.lang.String getAuthorization()
Specified by:
getAuthorization in interface Request

getCacheControl

public java.lang.String getCacheControl()
Specified by:
getCacheControl in interface Request

getSlug

public java.lang.String getSlug()
Specified by:
getSlug in interface Request

getContentType

public javax.activation.MimeType getContentType()
                                         throws javax.activation.MimeTypeParseException
Specified by:
getContentType in interface Request
Throws:
javax.activation.MimeTypeParseException

getIfMatch

public java.lang.String getIfMatch()
Specified by:
getIfMatch in interface Request

getIfModifiedSince

public java.util.Date getIfModifiedSince()
Specified by:
getIfModifiedSince in interface Request

getIfNoneMatch

public java.lang.String getIfNoneMatch()
Specified by:
getIfNoneMatch in interface Request

getIfUnmodifiedSince

public java.util.Date getIfUnmodifiedSince()
Specified by:
getIfUnmodifiedSince in interface Request

getMaxAge

public long getMaxAge()
Specified by:
getMaxAge in interface Request

getMaxStale

public long getMaxStale()
Specified by:
getMaxStale in interface Request

getMinFresh

public long getMinFresh()
Specified by:
getMinFresh in interface Request

isNoCache

public boolean isNoCache()
Specified by:
isNoCache in interface Request

isNoStore

public boolean isNoStore()
Specified by:
isNoStore in interface Request

isNoTransform

public boolean isNoTransform()
Specified by:
isNoTransform in interface Request

isOnlyIfCached

public boolean isOnlyIfCached()
Specified by:
isOnlyIfCached in interface Request

setMaxAge

public void setMaxAge(long max_age)

setMaxStale

public void setMaxStale(long max_stale)

setMinFresh

public void setMinFresh(long min_fresh)

setNoCache

public void setNoCache(boolean val)

setNoStore

public void setNoStore(boolean val)

setNoTransform

public void setNoTransform(boolean val)

setOnlyIfCached

public void setOnlyIfCached(boolean val)

getDecodedHeader

public java.lang.String getDecodedHeader(java.lang.String header)
Specified by:
getDecodedHeader in interface Request

getDecodedHeaders

public java.util.List<java.lang.String> getDecodedHeaders(java.lang.String header)
Specified by:
getDecodedHeaders in interface Request