Grzegorz Kossakowski skrev:
Daniel Fagerstrom pisze:

IIRC that is the case for the xpathstraversable generator. So it wouldn't work with a servlets: protocol as I conceive it.

Maybe we could have some extension to the directory generator so that it only lists directories that contain a specified URI (like e.g. list.xsamples) that could be implemented with the exists method in the Servlet interface, which for the servlet service source in turn could make a HEAD call and see if the response is 200 OK.

We are back to HEAD call?

Maybe ;) In practice it would be a GET as we don't do anything about HEAD in the samples sitemaps.

Another possibility would be to be able to filter servlets (beans) on the value of some bean property in the bean map (which would be needed to be extended for this). That would be similar to the way you do in OSGi where you can use a subset of the LDAP filter language to chose services based on their type and their properties.

I think that we don't have to touch xpathtraversable generator. If we have list of servlets, what about generating list of XInclude instructions and applying XInclude transformer. This way we could collect list of servlet being a sample because other would just respond with 404 which could be filtered out.

Sure.

/Daniel

Reply via email to