org.apache.abdera.protocol
Interface Response

All Superinterfaces:
Message, ProtocolConstants
All Known Subinterfaces:
CachedResponse, ClientResponse, ResponseContext
All Known Implementing Classes:
AbstractClientResponse, AbstractResponse, AbstractResponseContext, BaseResponseContext, CachedResponseBase, CommonsResponse, CompressionFilter.CompressingResponseContextWrapper, EmptyResponseContext, EntityProviderResponseContext, InMemoryCachedResponse, JsonObjectResponseContext, MediaResponseContext, ResponseContextWrapper, SimpleResponseContext, StreamWriterResponseContext

public interface Response
extends Message

Base interface for an Atompub protocol response message


Nested Class Summary
static class Response.ResponseType
          High level classifications of response types
 
Field Summary
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
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()
           
 int getStatus()
          Get the specific response status code
 String getStatusText()
          Get the response status text
 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
 
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
 

Method Detail

getEntityTag

org.apache.abdera.util.EntityTag getEntityTag()
Get the Entity Tag returned by the server


getType

Response.ResponseType getType()
Get the response type classification


getStatus

int getStatus()
Get the specific response status code


getStatusText

String getStatusText()
Get the response status text


getLastModified

Date getLastModified()
Get the value of the Last-Modified response header


getContentLength

long getContentLength()
Get the value of the Content-Length response header


getAllow

String getAllow()
Get the value of the Allow response header


getLocation

IRI getLocation()
Get the value of the Location response header


isPrivate

boolean isPrivate()
True if the Cache-Control header specifies the private directive


isPublic

boolean isPublic()
True if the Cache-Control header specified the public directive


isMustRevalidate

boolean isMustRevalidate()
True if the Cache-Control header specifies the must-revalidate directive


isProxyRevalidate

boolean isProxyRevalidate()
True if the Cache-Control header specifies the proxy-revalidate directive


getSMaxAge

long getSMaxAge()

getAge

long getAge()
Get the age of this response as specified by the server


getExpires

Date getExpires()
Get the date/time this response expires


getNoCacheHeaders

String[] getNoCacheHeaders()

getPrivateHeaders

String[] getPrivateHeaders()


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