org.codehaus.httpcache4j
Class HTTPResponse
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
HTTPResponse
public HTTPResponse(Payload payload,
Status status,
Headers headers)
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.