|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.DynamicByteArrayResource.ResourceState
public static class DynamicByteArrayResource.ResourceState
This is a ResourceState subclasses should return in the getResourceState method. This resource state should be thread safe. So it shouldn't be altered after construction. Even with synchronize blocks this is still not safe because the call getContentType() can not be sync together with the call getData() they will happen after each other.
Constructor Summary | |
---|---|
DynamicByteArrayResource.ResourceState()
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
|
byte[] |
getData()
|
int |
getLength()
|
Time |
lastModifiedTime()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicByteArrayResource.ResourceState()
Method Detail |
---|
public byte[] getData()
public java.lang.String getContentType()
public Time lastModifiedTime()
public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |