|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.restlet.resource.UniformResource org.restlet.resource.ServerResource com.hyper9.vangaea.server.rest.BaseResource<T> com.hyper9.vangaea.server.rest.AuthdResource<T> com.hyper9.vangaea.server.rest.virt.VirtResource<T>
T
- The type of bean this resource is responsible for returning to the
client.public abstract class VirtResource<T extends com.hyper9.uvapi.types.virt.VirtBean>
The base resource for all server resources in this package.
Field Summary | |
---|---|
protected java.lang.String |
myBeansObjectID
The object ID of the bean being processed (if a single bean is targeted). |
protected java.util.List<java.lang.String> |
propsToGet
The list of properties to get (if any). |
protected java.lang.String |
virtualizationPathPart
|
protected java.lang.String |
virtualizationUri
The URI for the virtualization namespace. |
Fields inherited from class com.hyper9.vangaea.server.rest.AuthdResource |
---|
authCookie, key, user |
Fields inherited from class com.hyper9.vangaea.server.rest.BaseResource |
---|
conn, initCallbacks, preProcessBeanCallbacks, rootPathPath |
Constructor Summary | |
---|---|
VirtResource()
Initializes a new instance of the VirtResource class. |
Method Summary | |
---|---|
protected java.lang.String |
getAttr(java.lang.String attrName)
Gets an attribute value from the request's URI. |
java.util.List<T> |
getBeans()
Get the beans list. |
T |
getBeans(java.util.List<ServerInformationBean> servers,
java.util.Map<ServerInformationBean,com.hyper9.uvapi.types.ConnectorBean> connectors)
Gets the beans from a group of servers. |
java.util.List<T> |
getBeans(ServerInformationBean server,
com.hyper9.uvapi.types.ConnectorBean connector)
Gets the beans from a server. |
protected java.lang.String |
getBeanUri(com.hyper9.uvapi.types.virt.VirtBean bean)
Gets the bean's URI. |
protected java.lang.String |
getBeanUriID(com.hyper9.uvapi.types.virt.VirtBean bean)
Gets the bean's URI ID. |
protected java.util.List<java.lang.String> |
getPropertiesToGet()
Gets a list of the properties to get for this resource via the query string. |
boolean |
isBatchProcessor()
Returns a value indicating whether or not this virtualization resource processes the servers one at a time or all at once. |
Methods inherited from class com.hyper9.vangaea.server.rest.BaseResource |
---|
doCatch, doInit, doRelease, get, getAuthCookieName, getAuthCookieValue, getBaseUrl, getRedirectUri, getSystemProperty, isAnnotated, isDefaultHttpPort, isDefaultHttpsPort, isDefaultHttpsPort |
Methods inherited from class org.restlet.resource.ServerResource |
---|
delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, getInfo, getInfo, getPreferredVariant, getVariants, getVariants, handle, head, head, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setServerInfo, setStatus, setStatus, setStatus, setStatus, setVariants, updateAllowedMethods, updateDimensions |
Methods inherited from class org.restlet.resource.UniformResource |
---|
getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, init, isConfidential, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.lang.String> propsToGet
protected java.lang.String virtualizationUri
protected java.lang.String virtualizationPathPart
protected java.lang.String myBeansObjectID
Constructor Detail |
---|
public VirtResource()
Method Detail |
---|
protected java.lang.String getBeanUriID(com.hyper9.uvapi.types.virt.VirtBean bean)
bean
- The bean.
protected java.lang.String getBeanUri(com.hyper9.uvapi.types.virt.VirtBean bean)
bean
- The bean.
public java.util.List<T> getBeans() throws java.lang.Exception
BaseResource
getBeans
in class BaseResource<T extends com.hyper9.uvapi.types.virt.VirtBean>
java.lang.Exception
- When an error occurs.public boolean isBatchProcessor()
public java.util.List<T> getBeans(ServerInformationBean server, com.hyper9.uvapi.types.ConnectorBean connector) throws java.lang.Exception
server
- The server.connector
- The server's connector.
java.lang.Exception
- When an error occurs.public T getBeans(java.util.List<ServerInformationBean> servers, java.util.Map<ServerInformationBean,com.hyper9.uvapi.types.ConnectorBean> connectors) throws java.lang.Exception
servers
- The servers.connectors
- The servers' connectors.
java.lang.Exception
- When an error occurs.protected java.util.List<java.lang.String> getPropertiesToGet()
protected java.lang.String getAttr(java.lang.String attrName) throws java.lang.Exception
attrName
- The name of the attribute to get.
java.lang.Exception
- When an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |