|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.resource.AbstractResource
public abstract class AbstractResource
Convenience resource implementation. The subclass must implement
newResourceResponse(org.apache.wicket.request.resource.IResource.Attributes) method.
| Nested Class Summary | |
|---|---|
static class |
AbstractResource.ResourceResponse
Represents data used to configure response and write resource data. |
static class |
AbstractResource.WriteCallback
Callback invoked when resource data needs to be written to response. |
| Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource |
|---|
IResource.Attributes |
| Field Summary | |
|---|---|
static Set<String> |
INTERNAL_HEADERS
header values that are managed internally and must not be set directly |
| Constructor Summary | |
|---|---|
AbstractResource()
Construct. |
|
| Method Summary | |
|---|---|
protected void |
configureCache(AbstractResource.ResourceResponse data,
IResource.Attributes attributes)
Configure the web response header for client cache control. |
protected void |
flushResponseAfterHeaders(WebResponse response)
Flushes the response after setting the headers. |
protected IResourceCachingStrategy |
getCachingStrategy()
|
protected abstract AbstractResource.ResourceResponse |
newResourceResponse(IResource.Attributes attributes)
Override this method to return a AbstractResource.ResourceResponse for the request. |
void |
respond(IResource.Attributes attributes)
Renders this resource to response using the provided attributes. |
protected void |
setResponseHeaders(AbstractResource.ResourceResponse data,
IResource.Attributes attributes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Set<String> INTERNAL_HEADERS
| Constructor Detail |
|---|
public AbstractResource()
| Method Detail |
|---|
protected abstract AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
AbstractResource.ResourceResponse for the request.
attributes - request attributes
protected void configureCache(AbstractResource.ResourceResponse data,
IResource.Attributes attributes)
data - resource dataattributes - request attributesprotected IResourceCachingStrategy getCachingStrategy()
public void respond(IResource.Attributes attributes)
IResource
respond in interface IResourceIResource.respond(org.apache.wicket.request.resource.IResource.Attributes)
protected void setResponseHeaders(AbstractResource.ResourceResponse data,
IResource.Attributes attributes)
data - attributes - protected void flushResponseAfterHeaders(WebResponse response)
response - the current web response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||