de.cau.cs.kieler.kwebs.client
Class HttpBasedLayoutServiceClient

java.lang.Object
  extended by de.cau.cs.kieler.kwebs.client.AbstractLayoutServiceClient
      extended by de.cau.cs.kieler.kwebs.client.HttpBasedLayoutServiceClient
All Implemented Interfaces:
ILayoutServiceClient
Direct Known Subclasses:
JaxWsClient

public abstract class HttpBasedLayoutServiceClient
extends AbstractLayoutServiceClient

Abstract client implementation supporting HTTPS configuration.

Rating red

Constructor Summary
protected HttpBasedLayoutServiceClient()
          Protected constructor.
protected HttpBasedLayoutServiceClient(ServerConfigData theserverConfig)
          Creates a new instance.
 
Method Summary
protected  void initSSL(String truststore, String truststorePass)
          Initializes the SSL context needed for communication with a HTTPS based layout provider.
protected  void releaseSSL()
          Sets the SSL configuration to system defaults.
 
Methods inherited from class de.cau.cs.kieler.kwebs.client.AbstractLayoutServiceClient
getLastError, getLastErrorAsStringArray, getServerConfig, isAvailable, setLastError, setServerConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cau.cs.kieler.kwebs.client.ILayoutServiceClient
connect, disconnect, getPreviewImage, getServiceData, graphLayout, isConnected
 

Constructor Detail

HttpBasedLayoutServiceClient

protected HttpBasedLayoutServiceClient()
Protected constructor.


HttpBasedLayoutServiceClient

protected HttpBasedLayoutServiceClient(ServerConfigData theserverConfig)
Creates a new instance. Only to be used by sub classes.

Parameters:
theserverConfig - the ServerConfigData of the layout service to be used
Method Detail

initSSL

protected void initSSL(String truststore,
                       String truststorePass)
                throws Exception
Initializes the SSL context needed for communication with a HTTPS based layout provider.

Parameters:
truststore - path to the trust store file
truststorePass - password for the trust store file
Throws:
Exception

releaseSSL

protected void releaseSSL()
Sets the SSL configuration to system defaults.