|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.protocol.util.AbstractMessage
public abstract class AbstractMessage
Root impl for Message interface impls. This is provided solely as a way of keeping the interface and impl's consistent across the Request and Response objects.
Field Summary | |
---|---|
protected int |
flags
|
protected long |
max_age
|
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
Constructor Summary | |
---|---|
AbstractMessage()
|
Method Summary | |
---|---|
protected boolean |
check(int flag)
|
String |
getCacheControl()
Return the value of the Cache-Control header |
String |
getContentLanguage()
Return the value of the Content-Language header |
IRI |
getContentLocation()
Return the value of the Content-Location header |
javax.activation.MimeType |
getContentType()
Return the value of the Content-Type header |
String |
getDecodedHeader(String header)
Get the decoded value of a RFC 2047 header |
String[] |
getDecodedHeaders(String header)
Return multiple decoded values for the specified header |
long |
getMaxAge()
Return the maximum-age as specified by the Cache-Control header |
String |
getSlug()
Return the value of the Slug header |
boolean |
isNoCache()
Return true if the Cache-Control header contains no-cache |
boolean |
isNoStore()
Return true if the Cache-Control header contains no-store |
boolean |
isNoTransform()
Return true if the Cache-Control header contains no-transform |
protected void |
toggle(boolean val,
int flag)
|
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 |
---|
getDateHeader, getHeader, getHeaderNames, getHeaders |
Field Detail |
---|
protected int flags
protected long max_age
Constructor Detail |
---|
public AbstractMessage()
Method Detail |
---|
public String getCacheControl()
Message
getCacheControl
in interface Message
public String getContentLanguage()
Message
getContentLanguage
in interface Message
public IRI getContentLocation()
Message
getContentLocation
in interface Message
public javax.activation.MimeType getContentType()
Message
getContentType
in interface Message
public String getDecodedHeader(String header)
Message
getDecodedHeader
in interface Message
public String[] getDecodedHeaders(String header)
Message
getDecodedHeaders
in interface Message
public String getSlug()
Message
getSlug
in interface Message
protected boolean check(int flag)
protected void toggle(boolean val, int flag)
public boolean isNoCache()
Message
isNoCache
in interface Message
public boolean isNoStore()
Message
isNoStore
in interface Message
public boolean isNoTransform()
Message
isNoTransform
in interface Message
public long getMaxAge()
Message
getMaxAge
in interface Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |