org.apache.abdera.protocol
Interface Response

All Superinterfaces:
ProtocolConstants, ResponseInfo
All Known Subinterfaces:
CachedResponse, ClientResponse, ResponseContext
All Known Implementing Classes:
AbstractClientResponse, AbstractResponse, AbstractResponseContext, BaseResponseContext, CachedResponseBase, CommonsResponse, EmptyResponseContext, InMemoryCachedResponse

public interface Response
extends ResponseInfo, ProtocolConstants


Nested Class Summary
static class Response.ResponseType
           
 
Field Summary
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Method Summary
 long getAge()
           
 java.lang.String getAllow()
           
 java.lang.String getCacheControl()
           
 java.lang.String getContentLanguage()
           
 long getContentLength()
           
 IRI getContentLocation()
           
 javax.activation.MimeType getContentType()
           
 java.util.Date getDateHeader(java.lang.String name)
           
 java.util.Date getExpires()
           
 java.lang.String getHeader(java.lang.String name)
           
 java.lang.String[] getHeaderNames()
           
 java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()
           
 java.util.List<java.lang.Object> getHeaders(java.lang.String name)
           
 java.util.Date getLastModified()
           
 IRI getLocation()
           
 long getMaxAge()
           
 java.lang.String[] getNoCacheHeaders()
           
 java.lang.String[] getPrivateHeaders()
           
 java.lang.String getSlug()
           
 long getSMaxAge()
           
 int getStatus()
           
 java.lang.String getStatusText()
           
 Response.ResponseType getType()
           
 IRI getUriHeader(java.lang.String name)
           
 boolean isMustRevalidate()
           
 boolean isNoCache()
           
 boolean isNoStore()
           
 boolean isNoTransform()
           
 boolean isPrivate()
           
 boolean isProxyRevalidate()
           
 boolean isPublic()
           
 
Methods inherited from interface org.apache.abdera.protocol.ResponseInfo
getEntityTag
 

Method Detail

getType

Response.ResponseType getType()

getStatus

int getStatus()

getStatusText

java.lang.String getStatusText()

getLastModified

java.util.Date getLastModified()
Specified by:
getLastModified in interface ResponseInfo

getContentLanguage

java.lang.String getContentLanguage()

getContentLocation

IRI getContentLocation()
                       throws IRISyntaxException
Throws:
IRISyntaxException

getContentLength

long getContentLength()

getContentType

javax.activation.MimeType getContentType()
                                         throws javax.activation.MimeTypeParseException
Throws:
javax.activation.MimeTypeParseException

getAllow

java.lang.String getAllow()

getLocation

IRI getLocation()
                throws IRISyntaxException
Throws:
IRISyntaxException

getSlug

java.lang.String getSlug()

getDateHeader

java.util.Date getDateHeader(java.lang.String name)

getUriHeader

IRI getUriHeader(java.lang.String name)
                 throws IRISyntaxException
Throws:
IRISyntaxException

getHeader

java.lang.String getHeader(java.lang.String name)

getHeaders

java.util.List<java.lang.Object> getHeaders(java.lang.String name)

getHeaders

java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()

getHeaderNames

java.lang.String[] getHeaderNames()

isPrivate

boolean isPrivate()

isPublic

boolean isPublic()

isNoCache

boolean isNoCache()

isNoStore

boolean isNoStore()

isNoTransform

boolean isNoTransform()

isMustRevalidate

boolean isMustRevalidate()

isProxyRevalidate

boolean isProxyRevalidate()

getMaxAge

long getMaxAge()

getSMaxAge

long getSMaxAge()

getAge

long getAge()

getExpires

java.util.Date getExpires()

getNoCacheHeaders

java.lang.String[] getNoCacheHeaders()

getPrivateHeaders

java.lang.String[] getPrivateHeaders()

getCacheControl

java.lang.String getCacheControl()