I should add that I want the cycle in order to access the context
of my external content repository. I am setting up this context
as described in http://markmail.org/message/varxr2or2ba6tr7g .
On 07.03.2008, at 12:19, Kaspar Fischer wrote:
How can I get hold of the current request cycle in a subclass of
WebResource?
In
public final class RepositoryFileResource extends WebResource
{
/* ... */
public IResourceStream getResourceStream()
{
RequestCycle cycle = RequestCycle.get();
cycle is null.
P.S. I am registering my resource in my application's init()
getSharedResources().add("repo", new RepositoryFileResource());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]