org.apache.abdera.protocol.util
Class AbstractResponse

java.lang.Object
  extended by org.apache.abdera.protocol.util.AbstractMessage
      extended by org.apache.abdera.protocol.util.AbstractResponse
All Implemented Interfaces:
Message, Response, ProtocolConstants
Direct Known Subclasses:
AbstractClientResponse, AbstractResponseContext

public abstract class AbstractResponse
extends AbstractMessage
implements Response


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response
Response.ResponseType
 
Field Summary
protected  String[] nocache_headers
           
protected  String[] private_headers
           
protected  long smax_age
           
 
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
AbstractResponse()
           
 
Method Summary
 long getAge()
          Get the age of this response as specified by the server
 String getAllow()
          Get the value of the Allow response header
 long getContentLength()
          Get the value of the Content-Length response header
 org.apache.abdera.util.EntityTag getEntityTag()
          Get the Entity Tag returned by the server
 Date getExpires()
          Get the date/time this response expires
 Date getLastModified()
          Get the value of the Last-Modified response header
 IRI getLocation()
          Get the value of the Location response header
 String[] getNoCacheHeaders()
           
 String[] getPrivateHeaders()
           
 long getSMaxAge()
           
 Response.ResponseType getType()
          Get the response type classification
 boolean isMustRevalidate()
          True if the Cache-Control header specifies the must-revalidate directive
 boolean isPrivate()
          True if the Cache-Control header specifies the private directive
 boolean isProxyRevalidate()
          True if the Cache-Control header specifies the proxy-revalidate directive
 boolean isPublic()
          True if the Cache-Control header specified the public directive
 AbstractResponse setMaxAge(long max_age)
           
 AbstractResponse setMustRevalidate(boolean val)
           
 AbstractResponse setNoCache(boolean val)
           
 AbstractResponse setNoCacheHeaders(String... headers)
           
 AbstractResponse setNoStore(boolean val)
           
 AbstractResponse setNoTransform(boolean val)
           
 AbstractResponse setPrivate(boolean val)
           
 AbstractResponse setPrivateHeaders(String... headers)
           
 AbstractResponse setProxyRevalidate(boolean val)
           
 AbstractResponse setPublic(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.Response
getStatus, getStatusText
 
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

nocache_headers

protected String[] nocache_headers

private_headers

protected String[] private_headers

smax_age

protected long smax_age
Constructor Detail

AbstractResponse

public AbstractResponse()
Method Detail

getAge

public long getAge()
Description copied from interface: Response
Get the age of this response as specified by the server

Specified by:
getAge in interface Response

getAllow

public String getAllow()
Description copied from interface: Response
Get the value of the Allow response header

Specified by:
getAllow in interface Response

getContentLength

public long getContentLength()
Description copied from interface: Response
Get the value of the Content-Length response header

Specified by:
getContentLength in interface Response

getEntityTag

public org.apache.abdera.util.EntityTag getEntityTag()
Description copied from interface: Response
Get the Entity Tag returned by the server

Specified by:
getEntityTag in interface Response

getExpires

public Date getExpires()
Description copied from interface: Response
Get the date/time this response expires

Specified by:
getExpires in interface Response

getLastModified

public Date getLastModified()
Description copied from interface: Response
Get the value of the Last-Modified response header

Specified by:
getLastModified in interface Response

getLocation

public IRI getLocation()
Description copied from interface: Response
Get the value of the Location response header

Specified by:
getLocation in interface Response

getNoCacheHeaders

public String[] getNoCacheHeaders()
Specified by:
getNoCacheHeaders in interface Response

getPrivateHeaders

public String[] getPrivateHeaders()
Specified by:
getPrivateHeaders in interface Response

getSMaxAge

public long getSMaxAge()
Specified by:
getSMaxAge in interface Response

getType

public Response.ResponseType getType()
Description copied from interface: Response
Get the response type classification

Specified by:
getType in interface Response

isMustRevalidate

public boolean isMustRevalidate()
Description copied from interface: Response
True if the Cache-Control header specifies the must-revalidate directive

Specified by:
isMustRevalidate in interface Response

isPrivate

public boolean isPrivate()
Description copied from interface: Response
True if the Cache-Control header specifies the private directive

Specified by:
isPrivate in interface Response

isProxyRevalidate

public boolean isProxyRevalidate()
Description copied from interface: Response
True if the Cache-Control header specifies the proxy-revalidate directive

Specified by:
isProxyRevalidate in interface Response

isPublic

public boolean isPublic()
Description copied from interface: Response
True if the Cache-Control header specified the public directive

Specified by:
isPublic in interface Response

setMaxAge

public AbstractResponse setMaxAge(long max_age)

setMustRevalidate

public AbstractResponse setMustRevalidate(boolean val)

setProxyRevalidate

public AbstractResponse setProxyRevalidate(boolean val)

setNoCache

public AbstractResponse setNoCache(boolean val)

setNoStore

public AbstractResponse setNoStore(boolean val)

setNoTransform

public AbstractResponse setNoTransform(boolean val)

setPublic

public AbstractResponse setPublic(boolean val)

setPrivate

public AbstractResponse setPrivate(boolean val)

setPrivateHeaders

public AbstractResponse setPrivateHeaders(String... headers)

setNoCacheHeaders

public AbstractResponse setNoCacheHeaders(String... headers)


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.