Hi dear all, (and specially you, Rob V. ;p )

I'm trying to use the capacity of the "UpdateProcessRemoteForm" class to add 
contextual informations to the request.
I don't succed in pass aditional information to the request. Here you can find 
a simple use case :


/**
 * A simple test case about httpcontext use.

 */

public static void main(String argv){

    String service = "http://localhost:8080/my_custom_servlet";;

    String update= "INSERT DATA { <http://example.com#Bob> 
<http://example.com#knows> <http://example.com#Alice>. }";
    UpdateProcessRemoteForm exec = (UpdateProcessRemoteForm) 
UpdateExecutionFactory.createRemoteForm(UpdateFactory.create(update), service);
    exec.setAuthentication("username","asecurepassword".toCharArray());
    HttpContext httpContext = exec.getHttpContext();
    if( httpContext == null){ httpContext = new BasicHttpContext(); }

    httpContext.setAttribute("userGroup","mailing_list_jena");

    exec.setHttpContext(httpContext);
    exec.execute();


}

At the moment where the update query arrived to my_custom_servlet, there are no 
attribute binded to the key "usergroup" in parameters, and no more in headers ( 
I use the standard "javax.servlet.http.HttpServletRequest" in my servlet to get 
information of http queries ).

Do I missed something ? Do this code wrong ?

VAISSE-LESTEVEN Arthur.

Reply via email to