Skip to content
Adrien Castex edited this page Apr 4, 2015 · 5 revisions

Quick start guide


Configure

HTTPServerSettings settings = new HTTPServerSettings(
  <server_name = "WebDav Server">,
  <command_list = HTTPCommand.getStandardCommands()>,
  <resource_manager_class = StandardResourceManager.class>,
  <resource_root = "">,
  <timeout = 5>,
  <nb_request_max_by_tcp_connection = 100>
);

Legend <description = defaultValue>

Constructor

HTTPServer server = new HTTPServer(<port>, <settings>);

Run the server

server.run(); // blocking call
new Thread(server).start(); // asynchronous call

Fast use of a standard WebDAV server

HTTPServerSettings settings = new HTTPServerSettings(
  "WebDAV Server",
  HTTPCommand.getStandardCommands(),
  StandardResourceManager.class,
  "<my folder>"
);

HTTPServer s = new HTTPServer(1700, settings);
s.run(); // Run the server

Fast use of a crypted WebDAV server :

LocalCryptedResourceManager.loadCipherCrypter(ICrypter.Algorithm.AES_ECB_PKCS5Padding);
LocalCryptedResourceManager.setKey("<my password>");

HTTPServerSettings settings = new HTTPServerSettings(
  "WebDAV Server",
  HTTPCommand.getStandardCommands(),
  LocalCryptedResourceManager.class,
  "<my folder>"
);

HTTPServer s = new HTTPServer(1700, settings);
s.run(); // Run the server

Clone this wiki locally