org.opennms.rancid.apiclient
Class RWSStub
java.lang.Object
org.opennms.rancid.apiclient.RWSStub
public class RWSStub
- extends Object
|
Method Summary |
static org.restlet.data.Reference |
addTest(org.restlet.Client client,
org.restlet.data.Reference nodeUri,
String nome,
String cognome,
String stato)
|
static boolean |
deleteItem(org.restlet.Client client,
org.restlet.data.Reference nodeUri)
Try to delete an item. |
static void |
get(org.restlet.Client client,
org.restlet.data.Reference reference)
|
static RancidNode |
getNode(org.restlet.Client client,
org.restlet.data.Reference nodeUri)
|
static void |
main(String[] args)
|
static RancidNode |
parse(org.restlet.data.Response response)
|
static org.restlet.data.Reference |
provideNode(org.restlet.Client client,
RancidNode node,
org.restlet.data.Reference nodeUri)
|
static boolean |
updateNode(RancidNode node,
org.restlet.Client client,
org.restlet.data.Reference nodeUri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RWSStub
public RWSStub()
main
public static void main(String[] args)
- Parameters:
args -
addTest
public static org.restlet.data.Reference addTest(org.restlet.Client client,
org.restlet.data.Reference nodeUri,
String nome,
String cognome,
String stato)
provideNode
public static org.restlet.data.Reference provideNode(org.restlet.Client client,
RancidNode node,
org.restlet.data.Reference nodeUri)
get
public static void get(org.restlet.Client client,
org.restlet.data.Reference reference)
throws IOException
- Throws:
IOException
updateNode
public static boolean updateNode(RancidNode node,
org.restlet.Client client,
org.restlet.data.Reference nodeUri)
deleteItem
public static boolean deleteItem(org.restlet.Client client,
org.restlet.data.Reference nodeUri)
- Try to delete an item.
- Parameters:
client - the Restlet HTTP client.itemUri - the resource's URI.
getNode
public static RancidNode getNode(org.restlet.Client client,
org.restlet.data.Reference nodeUri)
throws IOException
- Throws:
IOException
parse
public static RancidNode parse(org.restlet.data.Response response)
throws IOException
- Throws:
IOException
Copyright © 2009. All Rights Reserved.