* and will also be responsible for adding the using parameters to update queries that can
* accept them.
*/
private UsingList processProtocol(HttpServletRequest request)
{
UsingList toReturn = new UsingList();
String[] usingArgs = request.getParameterValues(paramUsingGraphURI) ;
String[] usingNamedArgs = request.getParameterValues(paramUsingNamedGraphURI) ;
if ( usingArgs == null && usingNamedArgs == null )
return toReturn;
if ( usingArgs == null )
usingArgs = new String[0] ;
if ( usingNamedArgs == null )
usingNamedArgs = new String[0] ;
// Impossible.
// if ( usingArgs.length == 0 && usingNamedArgs.length == 0 )
// return ;
for (String nodeUri : usingArgs)
{
toReturn.addUsing(createNode(nodeUri));
}
for (String nodeUri : usingNamedArgs)
{
toReturn.addUsingNamed(createNode(nodeUri));
}
return toReturn;
}