Yep, do it in the setup....

public void setup(SourceResolver resolver, Map objectModel, String src,
Parameters par) throws ProcessingException, SAXException, IOException
{
super.setup(resolver,objectModel,src,par);
try
{
Source inputSource = resolver.resolveURI(super.source);
this.source = inputSource.getURI();
}
catch(SourceException se)
{
throw SourceUtil.handle("Unable to Resolve " + super.source, se);
}
this.customHeader = par.getParameter(WORLD_LOGGER, new String());
this.httpClient = this.getHttpClient();
}

Reply via email to