no.ntnu.vegare.visualizer.client.connection
Class HttpsConnection

java.lang.Object
  extended by no.ntnu.vegare.visualizer.client.connection.HttpsConnection

public class HttpsConnection
extends java.lang.Object

A model representing a single HTTP or HTTPS connection.

Author:
vegare

Constructor Summary
HttpsConnection()
           
 
Method Summary
 java.security.cert.X509Certificate getCertificate()
           
 ConnectionType getConnectionType()
           
 java.lang.String getPassword()
           
 java.lang.String getUrl()
           
 java.lang.String getUsername()
           
 void setCertificate(java.security.cert.X509Certificate certificate)
           
 void setConnectionType(ConnectionType connectionType)
           
 void setPassword(java.lang.String password)
           
 void setUrl(java.lang.String url)
          Attempt to set the URL and connection type used for this connection.
 void setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsConnection

public HttpsConnection()
Method Detail

setUrl

public void setUrl(java.lang.String url)
            throws java.net.MalformedURLException

Attempt to set the URL and connection type used for this connection.

Throws:
java.net.MalformedURLException - Invalid URL or invalid protocol

getUrl

public java.lang.String getUrl()

setUsername

public void setUsername(java.lang.String username)

getUsername

public java.lang.String getUsername()

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()

setConnectionType

public void setConnectionType(ConnectionType connectionType)

getConnectionType

public ConnectionType getConnectionType()

setCertificate

public void setCertificate(java.security.cert.X509Certificate certificate)

getCertificate

public java.security.cert.X509Certificate getCertificate()