Hi,
when I make a request such this - from the demo/integritycheck:
$.ajax({
type: "POST",
url: "/ontonet/session",
contentType:
"application/x-www-form-urlencoded",
dataType: "json",
data:{
scope: scopeID,
session: sessionID,
location: entityUri
},
cache: false,
async: false,
success: function(result) {
$("#step-2-after .message").append("....OK");
},
error: function(result) {
$("#step-2-after
.message").append("....FAILED
["+result.status+": "+result.statusText+"]");
}
});
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.
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
Am I wrong?
Enrico
--
Enrico Daga
--
http://www.enridaga.net
skype: enri-pan