public class ResponseCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static AttachmentKey<ResponseCache> |
ATTACHMENT_KEY |
| Constructor and Description |
|---|
ResponseCache(DirectBufferCache cache,
HttpServerExchange exchange) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
tryServeResponse()
Attempts to serve the response from a cache.
|
boolean |
tryServeResponse(boolean markCacheable)
Attempts to serve the response from a cache.
|
public static final AttachmentKey<ResponseCache> ATTACHMENT_KEY
public ResponseCache(DirectBufferCache cache, HttpServerExchange exchange)
public boolean tryServeResponse()
true if serving suceeded,public boolean tryServeResponse(boolean markCacheable)
markCacheable - If this is true then the resulting response will be considered cachabletrue if serving suceeded,Copyright © 2013 JBoss by Red Hat. All Rights Reserved.