Package org.apache.jena.atlas.web
Class WebLib
- java.lang.Object
-
- org.apache.jena.atlas.web.WebLib
-
public class WebLib extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WebLib()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intchoosePort()Choose an unused port for a server to listen on.static java.lang.String[]split(java.lang.String s, java.lang.String splitStr)Split a string, removing whitespace around the split string.
-
-
-
Method Detail
-
split
public static java.lang.String[] split(java.lang.String s, java.lang.String splitStr)Split a string, removing whitespace around the split string. e.g. Use in splitting HTTP accept/content-type headers.
-
choosePort
public static int choosePort()
Choose an unused port for a server to listen on. Note: Fuseki main will start of "port 0", and then return the port actually allocated. This is atomic whereas "choosePort" does not reserve the port.
-
-