public interface HostsResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Host host)
Creates a new host and adds it to the database.
|
HostResource |
getHostSubResource(String id)
Sub-resource locator method, returns individual HostResource on which the
remainder of the URI is dispatched.
|
Hosts |
list() |
javax.ws.rs.core.Response |
remove(String id) |
Hosts list()
javax.ws.rs.core.Response add(Host host)
The Host#name, Host#address and Host#rootPassword properties are required.
host
- the host definition from which to create the new
hostjavax.ws.rs.core.Response remove(String id)
HostResource getHostSubResource(String id)
id
- the Host IDCopyright © 2012. All Rights Reserved.