java.lang.Object
org.apache.jena.fuseki.system.FusekiNetLib
Library of HTTP/network related functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDataInto
(Graph data, DatasetGraph dsg, Node graphName) static void
addDataInto
(DatasetGraph src, DatasetGraph dest) static int
Deprecated.static String
fmtRequest
(javax.servlet.http.HttpServletRequest request) Helper function for displaying an HttpServletRequeststatic String
getAccept
(javax.servlet.http.HttpServletRequest httpRequest) Get Accept header.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 incomingLang
based on Content-Type of an action.parseQueryString
(javax.servlet.http.HttpServletRequest req) Parse the query string - do not process the body even for a formstatic String
safeParameter
(javax.servlet.http.HttpServletRequest request, String pName)
-
Constructor Details
-
FusekiNetLib
public FusekiNetLib()
-
-
Method Details
-
getContentType
Get the content type of an action or return the default.- Parameters:
request
-- Returns:
- ContentType
-
getLangFromAction
Get the incomingLang
based on Content-Type of an action.- Parameters:
action
-dft
- Default if no "Content-Type:" found.- Returns:
- ContentType
-
getAccept
Get Accept header. If multiple headers, convert to a single, comma-separated value. -
fmtRequest
Helper function for displaying an HttpServletRequest -
parseQueryString
public static org.apache.commons.collections4.MultiValuedMap<String,String> parseQueryString(javax.servlet.http.HttpServletRequest req) Parse the query string - do not process the body even for a form -
safeParameter
-
addDataInto
-
addDataInto
-
choosePort
Deprecated.UseWebLib.choosePort()
or start servers with port 0 and then ask which port was allocated.
-