You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jansson <ja...@gmail.com> on 2006/08/17 09:24:30 UTC
Handler vs. Filter
Short question.
Using a filter to filter out a certain request, is that the same as using a
custom handler?
Are Filters and Handlers the same thing??
Or what is a filter?? Where/How do I define a filter?
I've found pretty much help on using Handlers, but very little about
filters.
I need to catch a HTTP post without an envelope (empty HTTP body, HTTP
header Content-Length: 0) before axis throws the "SAXParseException:
Premature end of file" back to the client.
--
View this message in context: http://www.nabble.com/Handler-vs.-Filter-tf2119971.html#a5846757
Sent from the Axis - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Handler vs. Filter
Posted by jansson <ja...@gmail.com>.
It's a bit clearer, I've found some help for filters with Tomcat.
As far as I understand, I'll write a filter class, and add that to the
web.xml
But should I apply it in Tomcats web.xml here:
$TOMCAT_ROOT$/conf/web.xml
or Axis web.xml here:
$TOMCAT_ROOT$/webapps/axis/WEB-INF/web.xml
Anne Thomas Manes wrote:
>
> "Filter" generally refers to a Servlet filter. It gets invoked before
> the HTTP request is passed to Axis. "Handler" refers to either an Axis
> handler or a JAX-RPC handler.
>
> Anne
>
> On 8/17/06, jansson <ja...@gmail.com> wrote:
>>
>>
>> Short question.
>> Using a filter to filter out a certain request, is that the same as using
>> a
>> custom handler?
>> Are Filters and Handlers the same thing??
>> Or what is a filter?? Where/How do I define a filter?
>>
>> I've found pretty much help on using Handlers, but very little about
>> filters.
>>
>> I need to catch a HTTP post without an envelope (empty HTTP body, HTTP
>> header Content-Length: 0) before axis throws the "SAXParseException:
>> Premature end of file" back to the client.
>> --
>> View this message in context:
>> http://www.nabble.com/Handler-vs.-Filter-tf2119971.html#a5846757
>> Sent from the Axis - User forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Handler-vs.-Filter-tf2119971.html#a5852049
Sent from the Axis - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Handler vs. Filter
Posted by Anne Thomas Manes <at...@gmail.com>.
"Filter" generally refers to a Servlet filter. It gets invoked before
the HTTP request is passed to Axis. "Handler" refers to either an Axis
handler or a JAX-RPC handler.
Anne
On 8/17/06, jansson <ja...@gmail.com> wrote:
>
>
> Short question.
> Using a filter to filter out a certain request, is that the same as using a
> custom handler?
> Are Filters and Handlers the same thing??
> Or what is a filter?? Where/How do I define a filter?
>
> I've found pretty much help on using Handlers, but very little about
> filters.
>
> I need to catch a HTTP post without an envelope (empty HTTP body, HTTP
> header Content-Length: 0) before axis throws the "SAXParseException:
> Premature end of file" back to the client.
> --
> View this message in context: http://www.nabble.com/Handler-vs.-Filter-tf2119971.html#a5846757
> Sent from the Axis - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org