Package org.apache.tapestry5.internal.services

# Class AjaxFilter

java.lang.Object
org.apache.tapestry5.internal.services.AjaxFilter

All Implemented Interfaces:
  `ComponentEventRequestFilter`

public class AjaxFilter extends Object implements ComponentEventRequestFilter
A filter that intercepts Ajax-oriented requests, thos that originate on the client-side using XmlHttpRequest. In these cases, the action processing occurs normally, but the response is quite different.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AjaxFilter(Request request, ComponentEventRequestHandler ajaxHandler)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler)`
  Filter for a component action request.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AjaxFilter

    public AjaxFilter(Request request, @Ajax ComponentEventRequestHandler ajaxHandler)

- ## Method Details

  - ### handle

    public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler) throws IOException
    Description copied from interface: `ComponentEventRequestFilter`
    Filter for a component action request.
    Specified by:
      `handle` in interface `ComponentEventRequestFilter`
    Parameters:
      `parameters` - defining details of the request
      `handler` - to delegate to
    Throws:
      `IOException`