org.apache.abdera.protocol
Interface Message

All Superinterfaces:
ProtocolConstants
All Known Subinterfaces:
CachedResponse, ClientResponse, Request, RequestContext, Response, ResponseContext
All Known Implementing Classes:
AbstractClientResponse, AbstractMessage, AbstractRequest, AbstractRequestContext, AbstractResponse, AbstractResponseContext, BaseResponseContext, CachedResponseBase, CommonsResponse, CompressionFilter.CompressingResponseContextWrapper, EmptyResponseContext, EntityProviderResponseContext, InMemoryCachedResponse, JsonObjectResponseContext, MediaResponseContext, RequestContextWrapper, RequestOptions, ResponseContextWrapper, ServletRequestContext, SimpleResponseContext, StreamWriterResponseContext

public interface Message
extends ProtocolConstants

A protocol message. This is used as the basis for both request and response objects in order to provide a consistent interface.


Field Summary
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Method Summary
 String getCacheControl()
          Return the value of the Cache-Control header
 String getContentLanguage()
          Return the value of the Content-Language header
 IRI getContentLocation()
          Return the value of the Content-Location header
 javax.activation.MimeType getContentType()
          Return the value of the Content-Type header
 Date getDateHeader(String name)
          Return the value of a Date header
 String getDecodedHeader(String name)
          Get the decoded value of a RFC 2047 header
 String[] getDecodedHeaders(String name)
          Return multiple decoded values for the specified header
 String getHeader(String name)
          Get the value of the specified header
 String[] getHeaderNames()
          Return a listing of header names
 Object[] getHeaders(String name)
          Return multiple values for the specified header
 long getMaxAge()
          Return the maximum-age as specified by the Cache-Control header
 String getSlug()
          Return the value of the Slug header
 boolean isNoCache()
          Return true if the Cache-Control header contains no-cache
 boolean isNoStore()
          Return true if the Cache-Control header contains no-store
 boolean isNoTransform()
          Return true if the Cache-Control header contains no-transform
 

Method Detail

getHeader

String getHeader(String name)
Get the value of the specified header


getDecodedHeader

String getDecodedHeader(String name)
Get the decoded value of a RFC 2047 header


getHeaders

Object[] getHeaders(String name)
Return multiple values for the specified header


getDecodedHeaders

String[] getDecodedHeaders(String name)
Return multiple decoded values for the specified header


getHeaderNames

String[] getHeaderNames()
Return a listing of header names


getCacheControl

String getCacheControl()
Return the value of the Cache-Control header


getSlug

String getSlug()
Return the value of the Slug header


getContentType

javax.activation.MimeType getContentType()
Return the value of the Content-Type header


getContentLocation

IRI getContentLocation()
Return the value of the Content-Location header


getContentLanguage

String getContentLanguage()
Return the value of the Content-Language header


getDateHeader

Date getDateHeader(String name)
Return the value of a Date header


getMaxAge

long getMaxAge()
Return the maximum-age as specified by the Cache-Control header


isNoCache

boolean isNoCache()
Return true if the Cache-Control header contains no-cache


isNoStore

boolean isNoStore()
Return true if the Cache-Control header contains no-store


isNoTransform

boolean isNoTransform()
Return true if the Cache-Control header contains no-transform



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