public class ExternalHostProviders extends CollectionDecorator<ExternalHostProvider,ExternalHostProviders,ExternalHostProvider>
ExternalHostProviders providing relation and functional services
Constructor and Description |
---|
ExternalHostProviders(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
ExternalHostProvider |
add(ExternalHostProvider externalhostprovider)
Adds ExternalHostProvider object.
|
ExternalHostProvider |
add(ExternalHostProvider externalhostprovider,
String correlationId)
Adds ExternalHostProvider object.
|
ExternalHostProvider |
add(ExternalHostProvider externalhostprovider,
String correlationId,
String expect)
Adds ExternalHostProvider object.
|
ExternalHostProvider |
get(UUID id)
Fetches ExternalHostProvider object by id.
|
ExternalHostProvider |
getById(String id)
Fetches ExternalHostProvider object by id.
|
List<ExternalHostProvider> |
list()
Lists ExternalHostProvider objects.
|
List<ExternalHostProvider> |
list(Integer max)
Lists ExternalHostProvider objects.
|
get
public ExternalHostProviders(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<ExternalHostProvider> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<ExternalHostProvider,ExternalHostProviders,ExternalHostProvider>
ExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public ExternalHostProvider get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<ExternalHostProvider,ExternalHostProviders,ExternalHostProvider>
id
- entity idExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public ExternalHostProvider getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<ExternalHostProvider,ExternalHostProviders,ExternalHostProvider>
id
- entity idExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public ExternalHostProvider add(ExternalHostProvider externalhostprovider) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
externalhostprovider
- ExternalHostProvider
external_host_provider.name [external_host_provider.description] [external_host_provider.url] [external_host_provider.requires_authentication] [external_host_provider.username] [external_host_provider.password]
ExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public ExternalHostProvider add(ExternalHostProvider externalhostprovider, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
externalhostprovider
- ExternalHostProvider
external_host_provider.name [external_host_provider.description] [external_host_provider.url] [external_host_provider.requires_authentication] [external_host_provider.username] [external_host_provider.password]
correlationId
- [any string]
ExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public ExternalHostProvider add(ExternalHostProvider externalhostprovider, String correlationId, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
externalhostprovider
- ExternalHostProvider
external_host_provider.name [external_host_provider.description] [external_host_provider.url] [external_host_provider.requires_authentication] [external_host_provider.username] [external_host_provider.password]
correlationId
- [any string]
expect
- [201-created]
ExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<ExternalHostProvider> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
ExternalHostProvider
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0