Thanks a lot, Michael. Very informative.

We are able to use server extension + plugin-initializer (with 
SPIPluginLifecycle)
to customize the security checking.

However, I am a little concerned with the usage of NeoServer in the 
SPIPluginLifecycle, since it's deprecated.
The java doc says it's going to be deprecated in the next major release.

Currently, is there any substitute for this class so that we could get a 
grasp of the webserver (we need to inject our customized filter there)?

Appreciate it.
Rick

On Wednesday, April 29, 2015 at 6:40:43 PM UTC-4, Michael Hunger wrote:
>
> There is built in http request logging:
>
> org.neo4j.server.http.unsafe.content_log.enabled=true
> In neo4j-server.properties, and by specifying the http log to output full
> requests and responses:
>
> <pattern>%fullRequest\n\n%fullResponse</pattern>
> As this uses mechanisms to fully duplicate incoming request and response
> streams, it is strongly recommended to not run this in a production 
> setting.
> However, it should prove very useful for debugging and testing
>
> and if you use a server extension + plugin-initializer you can get access 
> to the neo4j webserver and use the addFilter() method.
>
> see here for an example: 
> https://github.com/neo4j-contrib/authentication-extension/blob/2.1/src/main/java/org/neo4j/server/extension/auth/AuthenticationExtensionInitializer.java#L83
>
>
> Am 29.04.2015 um 19:43 schrieb cui r <[email protected] <javascript:>>:
>
> Hi,
>
> Is there anyway to add a web interceptor to the Neo4j server to log a few 
> customized HTTP headers sent along with requests?
>
> I am aware of the server extension, but I need to get hold of the 
> HttpServletRequest. How do I get that?
>
> Thanks in advance.
> Rick
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to