public class FusekiNetLib extends Object
Constructor and Description |
---|
FusekiNetLib() |
Modifier and Type | Method and Description |
---|---|
static void |
addDataInto(DatasetGraph src,
DatasetGraph dest) |
static void |
addDataInto(Graph data,
DatasetGraph dsg,
Node graphName) |
static int |
choosePort() |
static String |
fmtRequest(javax.servlet.http.HttpServletRequest request)
Helper function for displaying an HttpServletRequest
|
static String |
getAccept(javax.servlet.http.HttpServletRequest httpRequest) |
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 org.apache.jena.ext.com.google.common.collect.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(javax.servlet.http.HttpServletRequest request)
request
- public static Lang getLangFromAction(HttpAction action, Lang dft)
Lang
based on Content-Type of an action.action
- dft
- Default if no "Content-Type:" found.public static String getAccept(javax.servlet.http.HttpServletRequest httpRequest)
public static String fmtRequest(javax.servlet.http.HttpServletRequest request)
public static org.apache.jena.ext.com.google.common.collect.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)
public static void addDataInto(DatasetGraph src, DatasetGraph dest)
public static int choosePort()
Licensed under the Apache License, Version 2.0