org.apache.abdera.protocol.util
Class AbstractResponse

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response
Response.ResponseType
 
Field Summary
protected  int flags
           
protected  long max_age
           
protected  java.lang.String[] nocache_headers
           
protected  java.lang.String[] private_headers
           
protected  long smax_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()
           
 java.lang.String getAllow()
           
 java.lang.String getCacheControl()
           
 java.lang.String getContentLanguage()
           
 long getContentLength()
           
 IRI getContentLocation()
           
 javax.activation.MimeType getContentType()
           
 EntityTag getEntityTag()
           
 java.util.Date getExpires()
           
 java.util.Date getLastModified()
           
 IRI getLocation()
           
 long getMaxAge()
           
 java.lang.String[] getNoCacheHeaders()
           
 java.lang.String[] getPrivateHeaders()
           
 java.lang.String getSlug()
           
 long getSMaxAge()
           
 Response.ResponseType getType()
           
 IRI getUriHeader(java.lang.String name)
           
 boolean isMustRevalidate()
           
 boolean isNoCache()
           
 boolean isNoStore()
           
 boolean isNoTransform()
           
 boolean isPrivate()
           
 boolean isProxyRevalidate()
           
 boolean isPublic()
           
 void setMaxAge(long max_age)
           
 void setMustRevalidate(boolean val)
           
 void setNoCache(boolean val)
           
 void setNoCacheHeaders(java.lang.String... headers)
           
 void setNoStore(boolean val)
           
 void setNoTransform(boolean val)
           
 void setPrivate(boolean val)
           
 void setPrivateHeaders(java.lang.String... headers)
           
 void setProxyRevalidate(boolean val)
           
 void setPublic(boolean val)
           
 
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
getDateHeader, getHeader, getHeaderNames, getHeaders, getHeaders, getStatus, getStatusText
 

Field Detail

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
Constructor Detail

AbstractResponse

public AbstractResponse()
Method Detail

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)