org.apache.wicket.markup.html
Class DynamicWebResource.ResourceState

java.lang.Object
  extended by org.apache.wicket.markup.html.DynamicWebResource.ResourceState
Enclosing class:
DynamicWebResource

public abstract static class DynamicWebResource.ResourceState
extends Object

The resource state returned by the getResourceState() method. This state needs to be thread-safe and its methods must return the same values no matter how many times they are invoked. A ResourceState may assume getParameters() will remain unchanged during its lifetime.

Author:
jcompagner

Field Summary
protected  Time lastModifiedTime
           
 
Constructor Summary
DynamicWebResource.ResourceState()
           
 
Method Summary
abstract  String getContentType()
           
abstract  byte[] getData()
           
 int getLength()
           
 Time lastModifiedTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastModifiedTime

protected Time lastModifiedTime
Constructor Detail

DynamicWebResource.ResourceState

public DynamicWebResource.ResourceState()
Method Detail

getData

public abstract byte[] getData()
Returns:
The Byte array for this resource

getContentType

public abstract String getContentType()
Returns:
The content type of this resource

lastModifiedTime

public Time lastModifiedTime()
Returns:
The last modified time of this resource

getLength

public int getLength()
Returns:
The length of the data


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.