public class HostsServiceImpl extends ServiceImpl implements HostsService
HostsService.AddRequest, HostsService.AddResponse, HostsService.ListRequest, HostsService.ListResponse
Constructor and Description |
---|
HostsServiceImpl(HttpConnection connection,
String path) |
Modifier and Type | Method and Description |
---|---|
HostsService.AddRequest |
add()
Creates a new host and adds it to the database.
|
HostService |
hostService(String id) |
HostsService.ListRequest |
list() |
Service |
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
|
String |
toString() |
checkAction, checkFault, getConnection, getPath, throwError
public HostsServiceImpl(HttpConnection connection, String path)
public HostsService.AddRequest add()
HostsService
Creates a new host and adds it to the database. The host is created based on the properties of the host
parameter. The name
, address
rootPassword
properties are required.
add
in interface HostsService
public HostsService.ListRequest list()
list
in interface HostsService
public HostService hostService(String id)
hostService
in interface HostsService
public Service service(String path)
HostsService
Service locator method, returns individual service on which the URI is dispatched.
service
in interface HostsService
Copyright © 2016. All rights reserved.