org.neo4j.server.rest.web
Class AllowAjaxFilter

java.lang.Object
  extended by org.neo4j.server.rest.web.AllowAjaxFilter
All Implemented Interfaces:
com.sun.jersey.spi.container.ContainerResponseFilter

public class AllowAjaxFilter
extends Object
implements com.sun.jersey.spi.container.ContainerResponseFilter

This filter adds the header "Access-Control-Allow-Origin : *" to all responses that goes through it. This allows modern browsers to do cross-site requests to us via javascript.

Author:
Jacob Hansson

Constructor Summary
AllowAjaxFilter()
           
 
Method Summary
 com.sun.jersey.spi.container.ContainerResponse filter(com.sun.jersey.spi.container.ContainerRequest request, com.sun.jersey.spi.container.ContainerResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAjaxFilter

public AllowAjaxFilter()
Method Detail

filter

public com.sun.jersey.spi.container.ContainerResponse filter(com.sun.jersey.spi.container.ContainerRequest request,
                                                             com.sun.jersey.spi.container.ContainerResponse response)
Specified by:
filter in interface com.sun.jersey.spi.container.ContainerResponseFilter


Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.