public class Browsers extends Object
Constructor and Description |
---|
Browsers() |
Modifier and Type | Method and Description |
---|---|
static void |
addResponseListener(Browser browser,
BrowserResponseListener listener)
Registers a listener notified of OSLC responses raised by the delegated OSLC user interface displayed within a browser.
|
static Browser |
createBrowser(Composite parent)
Creates a browser to embed in a Shell.
|
static void |
setJazzCredentials(Browser browser,
org.apache.http.auth.Credentials credentials)
Provides credentials that the browser can use when authentication is requested by the Jazz server.
|
static void |
setLocation(Browser browser,
Dialog dialog)
Updates the URL of a browser and the size of its owning shell, based on the specified dialog.
|
public static Browser createBrowser(Composite parent)
parent
- the composite in which a browser is to display.public static void addResponseListener(Browser browser, BrowserResponseListener listener)
browser
- the browser in which an OSLC delegated user interface is displayed.listener
- the listener notified of OSLC responses.public static void setLocation(Browser browser, Dialog dialog)
browser
- the browser in which the OSLC dialog URL is to display.dialog
- the dialog which defines a URL of a web page to display and the preferred size of the browser.public static void setJazzCredentials(Browser browser, org.apache.http.auth.Credentials credentials)
When a login page is displayed, the browser will automatically fill the user ID and password and submit the login form. If credentials are not validated by the server, the login form is displayed again in the browser and the user has the opportunity to enter manually the field values.
browser
- the browser in which a Jazz OSLC resource is to display.credentials
- the user identity to connect to the Jazz OSLC resource.