|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.protocol.util.AbstractMessage
org.apache.abdera.protocol.util.AbstractRequest
public abstract class AbstractRequest
| 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 |
|---|
protected long max_stale
protected long min_fresh
| Constructor Detail |
|---|
public AbstractRequest()
| Method Detail |
|---|
public String getAccept()
Request
getAccept in interface Requestpublic String getAcceptCharset()
Request
getAcceptCharset in interface Requestpublic String getAcceptEncoding()
Request
getAcceptEncoding in interface Requestpublic String getAcceptLanguage()
Request
getAcceptLanguage in interface Requestpublic String getAuthorization()
Request
getAuthorization in interface Requestpublic org.apache.abdera.util.EntityTag[] getIfMatch()
Request
getIfMatch in interface Requestpublic Date getIfModifiedSince()
Request
getIfModifiedSince in interface Requestpublic org.apache.abdera.util.EntityTag[] getIfNoneMatch()
Request
getIfNoneMatch in interface Requestpublic Date getIfUnmodifiedSince()
Request
getIfUnmodifiedSince in interface Requestpublic long getMaxStale()
Request
getMaxStale in interface Requestpublic long getMinFresh()
Request
getMinFresh in interface Requestpublic boolean isOnlyIfCached()
Request
isOnlyIfCached in interface Requestpublic AbstractRequest setMaxAge(long max_age)
public AbstractRequest setMaxStale(long max_stale)
public AbstractRequest setMinFresh(long min_fresh)
public AbstractRequest setNoCache(boolean val)
public AbstractRequest setNoStore(boolean val)
public AbstractRequest setNoTransform(boolean val)
public AbstractRequest setOnlyIfCached(boolean val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||