public class BackendHostsResource extends AbstractBackendCollectionResource<Host,VDS> implements HostsResource
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolverBaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultExceptionCASE_SENSITIVE_CONSTRAINT_PARAMETER, FROM_CONSTRAINT_PARAMETER, LOGACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollectionsbackend, httpHeaders, messageBundle, sessionHelper, uriInfo| Constructor and Description |
|---|
BackendHostsResource() |
| 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 |
performRemove(String id) |
protected Host |
populate(Host model,
VDS entity) |
asString, expectBlocking, getBackendCollection, getBackendCollection, getBackendCollection, getEntity, handleAsynchrony, performCreation, remove, resolveCreatedaddLinks, addLinks, addLinks, addLinks, addOrUpdateLink, addParents, asCollection, asGuidOr404, asString, awaitCompletion, delay, entityNotFound, getAsynchronousStatus, getMapper, getMappingLocator, getQueryParams, incomplete, inject, injectSearchLinks, linkSubCollections, linkSubResource, map, map, map, map, newModel, notFound, notFound, removeIfExist, setMappingLocator, urlEncodedoAction, doGetEntity, doNonBlockingAction, expectNonBlocking, getBackendCollection, getConfigurationValue, getEntity, getEntity, getEntity, performAction, performAction, performNonBlockingActionasCollection, asGuid, asGuid, combine, fault, getBackend, getCurrent, getEffectiveLocale, getHttpHeaders, getMessageBundle, getSessionHelper, getUriInfo, handleError, handleError, instantiate, localize, localize, localize, sessionize, sessionize, setBackend, setHttpHeaders, setMessageBundle, setSessionHelper, setUriInfo, validateEnum, validateParameters, validateParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremovepublic Hosts list()
list in interface HostsResourcepublic HostResource getHostSubResource(String id)
HostsResourcegetHostSubResource in interface HostsResourceid - the Host IDpublic javax.ws.rs.core.Response add(Host host)
HostsResourceThe Host#name, Host#address and Host#rootPassword properties are required.
add in interface HostsResourcehost - the host definition from which to create the new
hostpublic javax.ws.rs.core.Response performRemove(String id)
performRemove in class AbstractBackendCollectionResource<Host,VDS>Copyright © 2012. All Rights Reserved.