public Mount mount ( MountParams mountParams ) throws CommandFailedException { if ( ! contextHandler . isStarted ( ) ) { throw new IllegalStateException ( "Mounting only possible for running servlets." ) ; } URI uri = getServletRootUri ( mountParams . getOrDefault ( MountParam . WEBDAV_HOSTNAME , connector . getHost ( ) ) ) ; LOG . info ( "Mounting {} using {}" , uri , mounter . getClass ( ) . getName ( ) ) ; return mounter . mount ( uri , mountParams ) ; }
Tries to mount the resource served by this servlet as a WebDAV drive on the local machine .