public static void main(String[] args) throws Exception { Engine.setLogLevel(Level.FINE); Server server = null;
public static void main(String[] args) { Engine.setLogLevel(Level.FINE); UacClientResource cr = new UacClientResource("sip:bob@locahost"); cr.start(); sleep(); cr.acknowledge(); sleep(); cr.stop(); }
useSectionNamingPackageStrategy = true; } else if ("-V".equals(arg) || "--verbose".equals(arg)) { Engine.setLogLevel(Level.FINE); } else if ("--application-name".equals(arg)) { applicationName = getParameter(args, ++i);
useSectionNamingPackageStrategy = true; } else if ("-V".equals(arg) || "--verbose".equals(arg)) { Engine.setLogLevel(Level.FINE); } else if ("--application-name".equals(arg)) { applicationName = getParameter(args, ++i);
@BeforeClass public static void setUp() throws Exception { // add test data final Repository repo = new SailRepository(sail); try (RepositoryConnection con = repo.getConnection()) { con.add(SparqlAskTest.class.getResourceAsStream(DATA_FILE), "", RDFFormat.TRIG); } // turn off verbose logging in Restlet engine Engine.setLogLevel(Level.WARNING); // configure SPARQL endpoint final Component component = new Component(); component.getServers().add(Protocol.HTTP, ENDPOINT_URL.getPort()); component.getDefaultHost().attach(ENDPOINT_URL.getPath(), new SparqlResource()); server.setInboundRoot(component); server.start(); }