public void save ( String saveat ) throws MalformedURLException , IOException { Resource resource = Resource . newResource ( saveat ) ; ObjectOutputStream out = new ObjectOutputStream ( resource . getOutputStream ( ) ) ; out . writeObject ( this ) ; out . flush ( ) ; out . close ( ) ; log . info ( "Saved " + this + " to " + resource ) ; }
Save the HttpServer The server is saved by serialization to the given filename or URL .