public class FusekiLib extends Object
| Constructor and Description |
|---|
FusekiLib() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDataInto(Graph data,
DatasetGraph dsg,
Node graphName) |
static ContentType |
getContentType(HttpAction action)
Get the content type of an action or return the default.
|
static ContentType |
getContentType(javax.servlet.http.HttpServletRequest request)
Get the content type of an action or return the default.
|
static Lang |
getLangFromAction(HttpAction action,
Lang dft)
Get the incoming Lang based on Content-Type of an action.
|
static MultiMap<String,String> |
parseQueryString(javax.servlet.http.HttpServletRequest req)
Parse the query string - do not process the body even for a form
|
static String |
safeParameter(javax.servlet.http.HttpServletRequest request,
String pName) |
public static ContentType getContentType(HttpAction action)
action - public static ContentType getContentType(javax.servlet.http.HttpServletRequest request)
request - public static Lang getLangFromAction(HttpAction action, Lang dft)
action - dft - Default if no "Content-Type:" found.public static MultiMap<String,String> parseQueryString(javax.servlet.http.HttpServletRequest req)
public static String safeParameter(javax.servlet.http.HttpServletRequest request, String pName)
public static void addDataInto(Graph data, DatasetGraph dsg, Node graphName)
Licenced under the Apache License, Version 2.0