On 10/27/2008 05:21 AM, Thorsten Mauch wrote:
Hi
I wonder if a Serializer can access the request object ? My problem is
that i want to pass a java Object to the Serializer that is created
somewhere else. Is this possible ?


Your serializer can implement the Contextualizable interface, and get access to the org.apache.cocoon.environment.Request object from the injected Context object:

public void contextualize(Context context) throws ContextException {
    Request req = org.apache.cocoon.components
                   .ContextHelper.getRequest(context);
}

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

Reply via email to