org.apache.abdera.protocol.util
Class AbstractResponse
java.lang.Object
org.apache.abdera.protocol.util.AbstractResponse
- All Implemented Interfaces:
- Response, ResponseInfo, ProtocolConstants
- Direct Known Subclasses:
- AbstractClientResponse, AbstractResponseContext
public abstract class AbstractResponse
- extends java.lang.Object
- implements Response
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
flags
protected int flags
nocache_headers
protected java.lang.String[] nocache_headers
private_headers
protected java.lang.String[] private_headers
max_age
protected long max_age
smax_age
protected long smax_age
AbstractResponse
public AbstractResponse()
getAge
public long getAge()
- Specified by:
getAge
in interface Response
getAllow
public java.lang.String getAllow()
- Specified by:
getAllow
in interface Response
getCacheControl
public java.lang.String getCacheControl()
- Specified by:
getCacheControl
in interface Response
getContentLanguage
public java.lang.String getContentLanguage()
- Specified by:
getContentLanguage
in interface Response
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface Response
getContentLocation
public IRI getContentLocation()
throws IRISyntaxException
- Specified by:
getContentLocation
in interface Response
- Throws:
IRISyntaxException
getSlug
public java.lang.String getSlug()
- Specified by:
getSlug
in interface Response
getContentType
public javax.activation.MimeType getContentType()
throws javax.activation.MimeTypeParseException
- Specified by:
getContentType
in interface Response
- Throws:
javax.activation.MimeTypeParseException
getEntityTag
public EntityTag getEntityTag()
- Specified by:
getEntityTag
in interface ResponseInfo
getExpires
public java.util.Date getExpires()
- Specified by:
getExpires
in interface Response
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interface Response
- Specified by:
getLastModified
in interface ResponseInfo
getLocation
public IRI getLocation()
throws IRISyntaxException
- Specified by:
getLocation
in interface Response
- Throws:
IRISyntaxException
getMaxAge
public long getMaxAge()
- Specified by:
getMaxAge
in interface Response
getNoCacheHeaders
public java.lang.String[] getNoCacheHeaders()
- Specified by:
getNoCacheHeaders
in interface Response
getPrivateHeaders
public java.lang.String[] getPrivateHeaders()
- Specified by:
getPrivateHeaders
in interface Response
getSMaxAge
public long getSMaxAge()
- Specified by:
getSMaxAge
in interface Response
getType
public Response.ResponseType getType()
- Specified by:
getType
in interface Response
getUriHeader
public IRI getUriHeader(java.lang.String name)
throws IRISyntaxException
- Specified by:
getUriHeader
in interface Response
- Throws:
IRISyntaxException
isMustRevalidate
public boolean isMustRevalidate()
- Specified by:
isMustRevalidate
in interface Response
isNoCache
public boolean isNoCache()
- Specified by:
isNoCache
in interface Response
isNoStore
public boolean isNoStore()
- Specified by:
isNoStore
in interface Response
isNoTransform
public boolean isNoTransform()
- Specified by:
isNoTransform
in interface Response
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interface Response
isProxyRevalidate
public boolean isProxyRevalidate()
- Specified by:
isProxyRevalidate
in interface Response
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interface Response
setMaxAge
public void setMaxAge(long max_age)
setMustRevalidate
public void setMustRevalidate(boolean val)
setProxyRevalidate
public void setProxyRevalidate(boolean val)
setNoCache
public void setNoCache(boolean val)
setNoStore
public void setNoStore(boolean val)
setNoTransform
public void setNoTransform(boolean val)
setPublic
public void setPublic(boolean val)
setPrivate
public void setPrivate(boolean val)
setPrivateHeaders
public void setPrivateHeaders(java.lang.String... headers)
setNoCacheHeaders
public void setNoCacheHeaders(java.lang.String... headers)