Remote System Explorer DataStore
Release 3.2

org.eclipse.dstore.core.client
Class ConnectionStatus

java.lang.Object
  extended by org.eclipse.dstore.core.client.ConnectionStatus

public class ConnectionStatus
extends Object

ConnectionStatus represents the state of a connection. This class is used for feedback, when a client attempts to connect to a server.


Constructor Summary
ConnectionStatus(boolean connected)
          Constructor
ConnectionStatus(boolean connected, String msg)
          Constructor
ConnectionStatus(boolean connected, Throwable e)
          Constructor
ConnectionStatus(boolean connected, Throwable e, boolean sslProblem, List untrustedCerts)
           
 
Method Summary
 Throwable getException()
           
 String getMessage()
          Returns the error message for a connection attempt
 String getTicket()
          Returns the ticket required for connecting to a server
 List getUntrustedCertificates()
           
 boolean isConnected()
          Indicates whether the connection was successful or not
 boolean isSLLProblem()
           
 void setConnected(boolean flag)
          Sets whether the connection is successful or not
 void setMessage(String message)
          Sets the connection error message
 void setTicket(String ticket)
          Sets the ticket to use when connecting to a server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionStatus

public ConnectionStatus(boolean connected)
Constructor

Parameters:
connected - indicates whether a connection has been made

ConnectionStatus

public ConnectionStatus(boolean connected,
                        Throwable e)
Constructor

Parameters:
connected - indicates whether a connection has been made
e - the exception that occurred when attempting to connect

ConnectionStatus

public ConnectionStatus(boolean connected,
                        String msg)
Constructor

Parameters:
connected - indicates whether a connection has been made
msg - a connection error message

ConnectionStatus

public ConnectionStatus(boolean connected,
                        Throwable e,
                        boolean sslProblem,
                        List untrustedCerts)
Method Detail

setConnected

public void setConnected(boolean flag)
Sets whether the connection is successful or not

Parameters:
flag - indication of whether the connection is successful

setMessage

public void setMessage(String message)
Sets the connection error message

Parameters:
message - the error message

setTicket

public void setTicket(String ticket)
Sets the ticket to use when connecting to a server. Typically, a ticket gets sent back from a server daemon so that the client can be granted access to the launched server DataStore

Parameters:
ticket - the ticket

isConnected

public boolean isConnected()
Indicates whether the connection was successful or not

Returns:
whether the connection was successful or not

getMessage

public String getMessage()
Returns the error message for a connection attempt

Returns:
the error message

getTicket

public String getTicket()
Returns the ticket required for connecting to a server

Returns:
the ticket

getException

public Throwable getException()

isSLLProblem

public boolean isSLLProblem()

getUntrustedCertificates

public List getUntrustedCertificates()

Remote System Explorer DataStore
Release 3.2

Copyright (c) IBM Corporation and others 2000, 2010. All Rights Reserved.