org.codehaus.httpcache4j
Class HTTPResponse

java.lang.Object
  extended by org.codehaus.httpcache4j.HTTPResponse
All Implemented Interfaces:
java.io.Serializable

public final class HTTPResponse
extends java.lang.Object
implements java.io.Serializable

Represents a HTTP response delivered by the cache. Constructions of this should not be done by clients, they should rely on that the cache does its job.

Author:
Erlend Hamnaberg
See Also:
Serialized Form

Constructor Summary
HTTPResponse(Payload payload, Status status, Headers headers)
           
 
Method Summary
 void consume()
           
 boolean equals(java.lang.Object o)
           
 java.util.Set<HTTPMethod> getAllowedMethods()
           
 Tag getETag()
           
 Headers getHeaders()
           
 org.joda.time.DateTime getLastModified()
           
 Payload getPayload()
           
 Status getStatus()
           
 int hashCode()
           
 boolean hasPayload()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPResponse

public HTTPResponse(Payload payload,
                    Status status,
                    Headers headers)
Method Detail

hasPayload

public boolean hasPayload()

getStatus

public Status getStatus()

getPayload

public Payload getPayload()

getHeaders

public Headers getHeaders()

getETag

public Tag getETag()

getLastModified

public org.joda.time.DateTime getLastModified()

getAllowedMethods

public java.util.Set<HTTPMethod> getAllowedMethods()

consume

public void consume()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2008-2009. All Rights Reserved.