Hi Enrico

> I have noticed some additional delay (they are a set of subsequent
> calls), then I looked to the log file, and I see this:
>
> 26.08.2011 12:30:41.827 *INFO* [364101573@qtp-1218979546-6]
> org.apache.stanbol.entityhub.jersey.parsers.RepresentationReader
> isreadable: [genericType: class
> com.sun.jersey.api.representation.Form| mediaType
> application/x-www-form-urlencoded]
> 26.08.2011 12:30:41.827 *INFO* [364101573@qtp-1218979546-6]
> org.apache.stanbol.entityhub.jersey.parsers.RepresentationReader   >
> java-type: false, media-type true
> 26.08.2011 12:30:41.827 *INFO* [364101573@qtp-1218979546-6]
> org.apache.stanbol.entityhub.jersey.parsers.FieldQueryReader
> isReadable type class com.sun.jersey.api.representation.Form,
> mediaType application/x-www-form-urlencoded
>
> Looks like this reader is active on any POST with content-type
> application/x-www-form-urlencoded.
>
This is OK. The

    boolean isReadable(...)

Method is called for any registered MessageBodyReader on an request.

> I think this is not the will of this implementation, right? In my case
> there is no need of this additional parsing, it can be handled
> directly by the endpoint /ontonet/session
>
The mentioned loggings indicate that this method returns "false" in both
cases. Therefore there is no unnecessary parsing happening.

I will change such loggings from INFO to DEBUG.

thx for reporting
Rupert

-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to