@Override protected void perform(HttpAction action) { ContentType ct = ActionLib.getContentType(action) ; if ( ct == null ) ct = ctSPARQLUpdate ; if ( matchContentType(ctSPARQLUpdate, ct) ) { executeBody(action) ; return ; } if ( isHtmlForm(ct) ) { executeForm(action) ; return ; } ServletOps.error(HttpSC.UNSUPPORTED_MEDIA_TYPE_415, "Bad content type: " + action.request.getContentType()) ; }
@Override protected void perform(HttpAction action) { ContentType ct = ActionLib.getContentType(action) ; if ( ct == null ) ct = ctSPARQLUpdate ; if ( matchContentType(ctSPARQLUpdate, ct) ) { executeBody(action) ; return ; } if ( isHtmlForm(ct) ) { executeForm(action) ; return ; } ServletOps.error(HttpSC.UNSUPPORTED_MEDIA_TYPE_415, "Bad content type: " + action.request.getContentType()) ; }
@Override protected final void perform(HttpAction action) { // OPTIONS if ( action.request.getMethod().equals(HttpNames.METHOD_OPTIONS) ) { // Share with update via SPARQL_Protocol. doOptions(action) ; return ; } // GET if ( action.request.getMethod().equals(HttpNames.METHOD_GET) ) { executeWithParameter(action) ; return ; } ContentType ct = ActionLib.getContentType(action) ; // POST application/x-www-form-url // POST ?query= and no Content-Type if ( ct == null || isHtmlForm(ct) ) { // validation checked that if no Content-type, then its a POST with ?query= executeWithParameter(action) ; return ; } // POST application/sparql-query if ( matchContentType(ct, ctSPARQLQuery) ) { executeBody(action) ; return ; } ServletOps.error(HttpSC.UNSUPPORTED_MEDIA_TYPE_415, "Bad content type: " + ct.getContentType()) ; }
if ( isHtmlForm(ct) ) { int x = countParamOccurences(request, paramUpdate) + countParamOccurences(request, paramRequest) ; if ( x == 0 )
@Override protected final void perform(HttpAction action) { // OPTIONS if ( action.request.getMethod().equals(HttpNames.METHOD_OPTIONS) ) { // Share with update via SPARQL_Protocol. doOptions(action) ; return ; } // GET if ( action.request.getMethod().equals(HttpNames.METHOD_GET) ) { executeWithParameter(action) ; return ; } ContentType ct = ActionLib.getContentType(action) ; // POST application/x-www-form-url // POST ?query= and no Content-Type if ( ct == null || isHtmlForm(ct) ) { // validation checked that if no Content-type, then its a POST with ?query= executeWithParameter(action) ; return ; } // POST application/sparql-query if ( matchContentType(ct, ctSPARQLQuery) ) { executeBody(action) ; return ; } ServletOps.error(HttpSC.UNSUPPORTED_MEDIA_TYPE_415, "Bad content type: " + ct.getContentType()) ; }
if ( isHtmlForm(ct) ) { int x = countParamOccurences(request, paramUpdate) + countParamOccurences(request, paramRequest) ; if ( x == 0 )
StreamRDF dest = StreamRDFLib.graph(model.getGraph()) ; if ( hasParams || WebContent.isHtmlForm(ct) ) assemblerFromForm(action, dest) ; else if ( WebContent.isMultiPartForm(ct) )
StreamRDF dest = StreamRDFLib.graph(model.getGraph()) ; if ( hasParams || WebContent.isHtmlForm(ct) ) assemblerFromForm(action, dest) ; else if ( WebContent.isMultiPartForm(ct) )