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 succeeded,public boolean tryServeResponse(boolean markCacheable)
markCacheable
- If this is true then the resulting response will be considered cachabletrue
if serving succeeded,Copyright © 2014 JBoss by Red Hat. All rights reserved.