com.mulesoft.cloudhub.client
Class Connection
java.lang.Object
com.mulesoft.cloudhub.client.Connection
- Direct Known Subclasses:
- DomainConnection
public class Connection
- extends Object
Base class for CloudHub interaction.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_URL
public static final String DEFAULT_URL
- See Also:
- Constant Field Values
Connection
public Connection(String url,
String username,
String password)
Connection
public Connection(String url,
String username,
String password,
boolean debug)
getUrl
protected final String getUrl()
getUsername
protected final String getUsername()
getPassword
protected final String getPassword()
on
public DomainConnection on(String domain)
getAPIURL
protected final String getAPIURL()
createBuilder
protected final com.sun.jersey.api.client.WebResource.Builder createBuilder(String path)
test
public final boolean test()
- Returns:
- true if provided connection details allow to connect; false otherwise
listApplications
public final List<Application> listApplications()
- Returns:
- all existing applications
createNotification
public Notification createNotification(String text,
Notification.Priority priority,
String domain)
listNotifications
public final NotificationResults listNotifications(Integer maxResults,
Integer offset)
- Parameters:
includeDismissed - offset - maxResults -
- Returns:
- all existing applications
dismissNotification
public final void dismissNotification(String href)
dismissAllNotifications
public final void dismissAllNotifications()
handleErrors
protected void handleErrors(com.sun.jersey.api.client.ClientResponse response)
Copyright © 2012. All Rights Reserved.