head request must be really fast because the happen a lot
and you should not be loading so much then

So you just have to see if you can create a resourcestream that only has the
right timestamp

johan



On Fri, Mar 7, 2008 at 12:31 PM, Kaspar Fischer <[EMAIL PROTECTED]>
wrote:

> 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]
>
>

Reply via email to