/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create <tt>HttpHandler</tt>, which, by default, will handle requests * to the static resources located in the current directory. */ public StaticHttpHandler() { addDocRoot("."); }
/** * Create a new instance which will look for static pages located * under the <tt>docRoot</tt>. If the <tt>docRoot</tt> is <tt>null</tt> - * static pages won't be served by this <tt>HttpHandler</tt> * * @param docRoots the folder(s) where the static resource are located. * If the <tt>docRoot</tt> is <tt>null</tt> - static pages won't be served * by this <tt>HttpHandler</tt> */ public StaticHttpHandler(String... docRoots) { if (docRoots != null) { for (String docRoot : docRoots) { addDocRoot(docRoot); } } }
/** * Create a new instance which will look for static pages located * under the <tt>docRoot</tt>. If the <tt>docRoot</tt> is <tt>null</tt> - * static pages won't be served by this <tt>HttpHandler</tt> * * @param docRoots the folder(s) where the static resource are located. * If the <tt>docRoot</tt> is <tt>null</tt> - static pages won't be served * by this <tt>HttpHandler</tt> */ public StaticHttpHandler(String... docRoots) { if (docRoots != null) { for (String docRoot : docRoots) { addDocRoot(docRoot); } } }
/** * Create a new instance which will look for static pages located * under the <tt>docRoot</tt>. If the <tt>docRoot</tt> is <tt>null</tt> - * static pages won't be served by this <tt>HttpHandler</tt> * * @param docRoots the folder(s) where the static resource are located. * If the <tt>docRoot</tt> is <tt>null</tt> - static pages won't be served * by this <tt>HttpHandler</tt> */ public StaticHttpHandler(String... docRoots) { if (docRoots != null) { for (String docRoot : docRoots) { addDocRoot(docRoot); } } }
/** * Create a new instance which will look for static pages located * under the <tt>docRoot</tt>. If the <tt>docRoot</tt> is <tt>null</tt> - * static pages won't be served by this <tt>HttpHandler</tt> * * @param docRoots the folder(s) where the static resource are located. * If the <tt>docRoot</tt> is <tt>null</tt> - static pages won't be served * by this <tt>HttpHandler</tt> */ public StaticHttpHandler(String... docRoots) { if (docRoots != null) { for (String docRoot : docRoots) { addDocRoot(docRoot); } } }
/** * Create a new instance which will look for static pages located * under the <tt>docRoot</tt>. If the <tt>docRoot</tt> is <tt>null</tt> - * static pages won't be served by this <tt>HttpHandler</tt> * * @param docRoots the folder(s) where the static resource are located. * If the <tt>docRoot</tt> is <tt>null</tt> - static pages won't be served * by this <tt>HttpHandler</tt> */ public StaticHttpHandler(String... docRoots) { if (docRoots != null) { for (String docRoot : docRoots) { addDocRoot(docRoot); } } }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. * * @return return the {@link File} representation of the passed <code>docRoot</code>. */ public final File addDocRoot(String docRoot) { if (docRoot == null) { throw new NullPointerException("docRoot can't be null"); } final File file = new File(docRoot); addDocRoot(file); return file; }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. * * @return return the {@link File} representation of the passed <code>docRoot</code>. */ public final File addDocRoot(String docRoot) { if (docRoot == null) { throw new NullPointerException("docRoot can't be null"); } final File file = new File(docRoot); addDocRoot(file); return file; }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. * * @return return the {@link File} representation of the passed <code>docRoot</code>. */ public final File addDocRoot(String docRoot) { if (docRoot == null) { throw new NullPointerException("docRoot can't be null"); } final File file = new File(docRoot); addDocRoot(file); return file; }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. * * @return return the {@link File} representation of the passed <code>docRoot</code>. */ public final File addDocRoot(String docRoot) { if (docRoot == null) { throw new NullPointerException("docRoot can't be null"); } final File file = new File(docRoot); addDocRoot(file); return file; }