Class 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 int choosePort()
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebLib

        public WebLib()
    • 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.