com.apelon.apelonserver.client
Class ServerConnectionSecureSocket

java.lang.Object
  extended by com.apelon.apelonserver.client.ServerConnection
      extended by com.apelon.apelonserver.client.ServerConnectionSocket
          extended by com.apelon.apelonserver.client.ServerConnectionSecureSocket

public class ServerConnectionSecureSocket
extends ServerConnectionSocket

Title: Secure ServerConnectionSocket class for all Apelon Clients

Description: This class extends the functionality of the ServerConnectionSocket by creating a secure socket connection to the server.

Does by prepending the basic query with authorization token (username+password)

Copyright: Copyright (c) 2002

Company: Apelon Inc.

Version:
2.3
Author:
unascribed

Field Summary
 
Fields inherited from class com.apelon.apelonserver.client.ServerConnectionSocket
rtt
 
Constructor Summary
ServerConnectionSecureSocket(String host, int port, boolean init, String username, String password)
          Constructor which initializes the socket connection.
ServerConnectionSecureSocket(String host, int port, String username, String password)
          Constructor which initializes the socket connection.
 
Method Summary
protected  String executeQueryRemote(String query)
          Executes a given query.
 
Methods inherited from class com.apelon.apelonserver.client.ServerConnectionSocket
close, toString
 
Methods inherited from class com.apelon.apelonserver.client.ServerConnection
ping, setQueryServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerConnectionSecureSocket

public ServerConnectionSecureSocket(String host,
                                    int port,
                                    String username,
                                    String password)
                             throws ApelonException
Constructor which initializes the socket connection.

Parameters:
host - the host name that is running the server
port - the port number on which server is listening
username - the username for logging on to the server
password - the password for logging on to the server
Throws:
ApelonException

ServerConnectionSecureSocket

public ServerConnectionSecureSocket(String host,
                                    int port,
                                    boolean init,
                                    String username,
                                    String password)
                             throws ApelonException
Constructor which initializes the socket connection.

Parameters:
host - the host name that is running the server
port - the port number on which server is listening
init - flag to initialize socket connection
username - the username for logging on to the server
password - the password for logging on to the server
Throws:
ApelonException
Method Detail

executeQueryRemote

protected String executeQueryRemote(String query)
                             throws ApelonException
Executes a given query. Since this is a secure socket connection model, a token carrying username and password is prepended to the normal query before dispatching it to the server

Overrides:
executeQueryRemote in class ServerConnectionSocket
Parameters:
query -
Returns:
xml formatted result string.
Throws:
ApelonException


Copyright © 2011. All Rights Reserved.