If you mean WebService ala SOAP - you are probably out of luck without a lot of work.

If you mean webservice as a webpage which does stuff that is intended to be called by an application - there might be hope.

If the ENTIRE webapp is considered the webservice, you can run the Valve at the Context level and the valve will run for all requests.

Otherwise you'll need to inspect the request to see if it will be mapped to your webservice. Of course with SOAP - you may need to inspect some of the POST content to determine this - so you'd have to get the content of post data in a non-destructive manner.

-Tim

Andrew McDowall wrote:

Hi,

I have a WebService that implements a specific interface (Registerable),
and a Valve who's actions depend upon whether the WebService dealing
with a given request implements this Registerable interface.  What I
need to be able to do, in the invoke method of the Valve, is somehow
say:

if(Request.getContext() ... instanceof Registerable)
{
   // Do some Registration stuff
}

Is there anyway to do this sort of operation?  I tried searching through
Javadocs, Source-Code, and mailing lists but could not find any answers.
Thanks in advance.


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

Reply via email to