org.apache.abdera.ext.json
Class JSONFilter

java.lang.Object
  extended by org.apache.abdera.ext.json.JSONFilter
All Implemented Interfaces:
Filter

public class JSONFilter
extends Object
implements Filter

Filter implementation that will convert an Atom document returned by the server into a JSON document if the request specifies a higher preference value for JSON or explicitly requests JSON by including a format=json querystring parameter


Constructor Summary
JSONFilter()
           
 
Method Summary
 ResponseContext filter(RequestContext request, FilterChain chain)
          Process the filter request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONFilter

public JSONFilter()
Method Detail

filter

public ResponseContext filter(RequestContext request,
                              FilterChain chain)
Description copied from interface: Filter
Process the filter request. The filter must call chain.next(request) to pass the request on to the next filter or the provider.

Specified by:
filter in interface Filter


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.