wicket.resource
Class DynamicByteArrayResource

java.lang.Object
  extended by wicket.Resource
      extended by wicket.markup.html.WebResource
          extended by wicket.resource.DynamicByteArrayResource
All Implemented Interfaces:
java.io.Serializable, IRequestListener, IResourceListener

Deprecated. use DynamicWebResource now

public abstract class DynamicByteArrayResource
extends WebResource

Byte array resource class that supports dynamic (database or on the fly generated) data.

Author:
Johan Compagner
See Also:
Serialized Form

Nested Class Summary
static class DynamicByteArrayResource.ResourceState
          Deprecated. This is a ResourceState subclasses should return in the getResourceState method.
 
Field Summary
 
Fields inherited from interface wicket.IResourceListener
INTERFACE
 
Constructor Summary
DynamicByteArrayResource()
          Deprecated. Creates a dynamic resource
DynamicByteArrayResource(java.util.Locale locale)
          Deprecated. Creates a dynamic resource
DynamicByteArrayResource(java.util.Locale locale, Duration cacheTimeout)
          Deprecated. Creates a dynamic resource
 
Method Summary
protected abstract  DynamicByteArrayResource.ResourceState getResourceState()
          Deprecated. Gets the byte array for our dynamic resource.
 IResourceStream getResourceStream()
          Deprecated.  
 void invalidate()
          Deprecated. Sets any loaded resource to null, thus forcing a reload on the next request.
 
Methods inherited from class wicket.markup.html.WebResource
configureResponse, setHeaders
 
Methods inherited from class wicket.Resource
getParameters, isCacheable, onResourceRequested, setCacheable, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicByteArrayResource

public DynamicByteArrayResource()
Deprecated. 
Creates a dynamic resource


DynamicByteArrayResource

public DynamicByteArrayResource(java.util.Locale locale)
Deprecated. 
Creates a dynamic resource

Parameters:
locale - The locale of this resource

DynamicByteArrayResource

public DynamicByteArrayResource(java.util.Locale locale,
                                Duration cacheTimeout)
Deprecated. 
Creates a dynamic resource

Parameters:
locale - The locale of this resource
cacheTimeout - The cache duration timeout
Method Detail

getResourceStream

public final IResourceStream getResourceStream()
Deprecated. 
Specified by:
getResourceStream in class Resource
Returns:
Gets the image resource to attach to the component.

invalidate

public void invalidate()
Deprecated. 
Description copied from class: Resource
Sets any loaded resource to null, thus forcing a reload on the next request.

Overrides:
invalidate in class Resource
See Also:
Resource.invalidate()

getResourceState

protected abstract DynamicByteArrayResource.ResourceState getResourceState()
Deprecated. 
Gets the byte array for our dynamic resource. If the subclass regenerates the data, it should set the lastModifiedTime too. This ensures that image caching works correctly.

Returns:
The byte array for this dynamic resource.


Copyright © 2004-2007 Wicket developers. All Rights Reserved.