org.apache.abdera.protocol.util
Class AbstractRequest
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
flags
protected int flags
max_age
protected long max_age
max_stale
protected long max_stale
min_fresh
protected long min_fresh
AbstractRequest
public AbstractRequest()
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()
- Specified by:
getContentType
in interface Request
getIfMatch
public EntityTag[] getIfMatch()
- Specified by:
getIfMatch
in interface Request
getIfModifiedSince
public java.util.Date getIfModifiedSince()
- Specified by:
getIfModifiedSince
in interface Request
getIfNoneMatch
public EntityTag[] 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