delete_web_source: Remove a complete web source for the server's "www" source

Description Usage Arguments Details Value Examples

View source: R/delete_web_source.R

Description

Removes a complete web source for the server's "www" source. This also deletes all the resources allocated with the web source.

Usage

1
delete_web_source(web_source, host = .host., silent = FALSE)

Arguments

web_source

The name of the web source to be deleted. All www resource links and urls are grouped under a "web source" which is just a name to allow removing them with a single call.

host

(Optional) the name of the jazz server host (including the port). Usually set just once via set_jazz_host().

silent

(Optional) If this is TRUE, the function returns FALSE instead of throwing an error in case the corresponding PUT or DELETE function returns false.

Details

This is a macro function wrapping calls around put_function().

Value

Returns TRUE if successful. When silent == FALSE (default) throws an error on any failure. Otherwise, it returns FALSE when the corresponding PUT or DELETE function returns false.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
set_jazz_host('127.0.0.1:8888')
page <- '<html>\n<body>\n<br/>Hello world!\n</body>\n</html>'
create_web_resource('my_test',
                    '/my_test/hello.html',
                    type_const[['BLOCKTYPE_RAW_MIME_HTML']],
                    page)
# See http://127.0.0.1:8888/my_test/hello.html with a browser.

list_web_sources()
delete_web_source('my_test')

## End(Not run)

rjazz documentation built on May 2, 2019, 2:45 p.m.