graphaware / neo4j-framework

GraphAware Neo4j Framework
244 stars 68 forks source link

Does this package provide hooks to allow addition of custom jmx filters? #31

Closed jbkielis closed 8 years ago

jbkielis commented 9 years ago

I'd like to add a javax.servlet.Filter in order to do GZIP compression. Does this library allow us to hook into jetty server setup in order to add this?

Thanks.

bachmanm commented 9 years ago

Yes, but not without coding. We already do this for a Filter we need - have a look here: https://github.com/graphaware/neo4j-framework/blob/master/server/server-common/src/main/java/com/graphaware/server/web/GraphAwareJetty9WebServer.java#L219

Without changes to the Framework, you'd have to extend GraphAwareJetty9WebServer and override the setDefaultInjectables method, then override GraphAwareCommunityNeoServer or GraphAwareEnterpriseNeoServerto instantiate your Web Server, and finally override GraphAwareCommunityBootstrapper or GraphAwareEnterpriseBootstrapper to instantiate your Neo Server.

We could build a mechanism for you to hook Filters up without coding as paid consultancy. Alternatively create a feature request and we'll look at it when we can. Or even better, if you manage, please issue a pull request.

Thank!