hi,

in my webapp i want to serve files from the filesystem to the user. so i coded 
something like this:

mount(new URIRequestTargetUrlCodingStrategy("/files") {
            @Override
            public IRequestTarget decode(RequestParameters requestParameters) {
                final String fileId = getURI(requestParameters);

... read some info from database and build a fileInfo object ...

                /* Get file for this instance */
                return new ResourceStreamRequestTarget(new 
AnonFileResourceStream(fileInfo));
            }
        });

(AnonFileResourceStream extends AbstractResourceStream)

all requests to "/files" use the remaining part of the request to ask the 
database where the real file is located and stream it to the client. 
the problem is that i need to know from which ip address the request was made. 
i need the WebRequest object for this request to get some http headers. 
is this possible or is there another way to get hold of this information?


thanx alot
stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to