|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.ui.IConnectionErrorHandler
public abstract class IConnectionErrorHandler
A class which is used to handle an error which occurs when attempting to connection to a service.
Connection error handlers have the following responsibilites:
Connection error handlers are contributed by extending the net.refractions.catalog.ui.connectionErrorHandler extension point.
Subclasses may overide the following methods.
Field Summary | |
---|---|
static java.lang.String |
XPID
extension point id * |
Constructor Summary | |
---|---|
IConnectionErrorHandler()
|
Method Summary | |
---|---|
abstract boolean |
canHandle(IService service,
java.lang.Throwable t)
Determines if the handler can handle the error in question. |
boolean |
canRecover()
Determines if the handler has the ability to recover from the error so that another connection may be attempted. |
protected abstract Control |
create(Composite parent)
|
void |
createControl(Composite parent)
Creates the control used by the handler to provide feedback / recover from the error. |
Control |
getControl()
|
java.lang.String |
getName()
Return the name of the handler. |
IService |
getService()
|
java.lang.Throwable |
getThrowable()
|
boolean |
isComplete()
Determines if the handler is done handling the error, and another connection may be attempted. |
void |
recover(IProgressMonitor monitor)
This method is called in the event in which a handler can recover from a connection error. |
void |
setName(java.lang.String name)
Sets the name for the handler. |
void |
setService(IService service)
|
void |
setThrowable(java.lang.Throwable t)
Sets the error being handled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XPID
Constructor Detail |
---|
public IConnectionErrorHandler()
Method Detail |
---|
public void setName(java.lang.String name)
name
- The name of the handler.public java.lang.String getName()
public void setThrowable(java.lang.Throwable t)
t
- The throwable object representing the error.public java.lang.Throwable getThrowable()
public IService getService()
public void setService(IService service)
service
- The service being connected to.public Control getControl()
public void createControl(Composite parent)
parent
- The parent widget.public boolean isComplete()
public boolean canRecover()
public void recover(IProgressMonitor monitor) throws java.io.IOException
monitor
- A progress monitor.
java.io.IOException
public abstract boolean canHandle(IService service, java.lang.Throwable t)
t
- The error in question.
protected abstract Control create(Composite parent)
parent
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |